Skip to content

Milestone 3: Integrate the chatbot #9

Description

@jose-izarra

Now that the fine-tuned model is ready, we need to integrate it into the streamlit app.

Set up chatbot UI

Set up a simple user interface for the user to interact with your own fine tuned model. Nothing fancy.

Connect to model API

Your fine-tuned model will be hosted on Open AI API, so you will have to authenticate that it's you making requests to your model. To do this, you will need to:

  • Use OpenAI, Hugging Face, or your custom endpoint
  • Implement POST requests for sending user messages and receiving model responses
  • Handle authentication securely (API keys, env variables)

You have already done something similar with the Open API keys to call the gpt model.

OPTIONAL: Deploy chatbot

You can try deploying the app on streamlit cloud, which has a dedicated for hosting streamlit apps.

For this, you will need to:

  • Set up consistent folder structure in the repo for streamlit cloud to access your files
  • Add the environment variables to the streamlit server, including API keys and such

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions