Skip to content

tranhoangnguyen03/OSM-7B-Chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSM-7B-Chat

This is an interactive chat app built with Streamlit to demonstrate conversational AI models. Try it on on (Streamlit Cloud app[https://tranhoangnguyen03-osm-7b-chat-app-6yihj6.streamlit.app/]

Features

  • Select from a variety of OpenAI Codex models like Mistral, Jurassic, Davinci etc.
  • Interactively chat with the selected AI assistant
  • View chat history and have contextual conversations
  • Customize the AI assistant prompt
  • Define a response schema for the AI to follow

Usage

To run the app: streamlit run app.py

This will launch the Streamlit app on http://localhost:8501.

Select a model, deploy on Colab, and start chatting!

Implementation

The key components of the app:

  • st_sidebar.py - Handles model selection and app settings
  • st_main.py - Renders the chat UI with Streamlit components
  • openai_client.py - Wraps the OpenAI API for chat completions
  • chat_formatter.py - Formats messages for the AI assistant
  • models.py - Retrieves model metadata from API

The app maintains conversation state and history in Streamlit session state.

Contributions

Contributions are welcome! Please open issues and pull requests.

Some ideas for improvements:

  • Add more AI models
  • Improve chat formatting
  • Persist conversation history
  • Add audio input/output

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages