A user-friendly Streamlit chat interface that utilizes the OpenAI API to converse with a locally-hosted Large Language Model (LLM) using Ollama. This interface provides a simple and intuitive way for users to interact with the LLM, allowing them to ask questions, engage in discussions, and explore its capabilities.
- Text & Image Input: Engage in conversations using both text and image prompts.
- Real-Time Responses: See the LLM's responses generated in real time as it processes your input.
- Image Display: Uploaded images are seamlessly integrated into the conversation history.
- Conversation Reset: Easily clear the chat history with a single button click to start fresh.
- Python 3.x
- Poetry (for dependency management)
- Ollama and a running LLM (e.g., llama-3.1-8b)
To get started, run the following commands in your terminal:
poetry install
poetry shellThis will create a new virtual environment and install the required dependencies.
- Run the application using
streamlit run main.py. - Access the chat interface by navigating to
http://localhost:8501in your web browser.