Spaces:
Sleeping
Sleeping
File size: 1,070 Bytes
3653892 561809e 3653892 6c8618f fa4db4b 37ed527 fa4db4b 3653892 fa4db4b 86278a3 fa4db4b 86278a3 fa4db4b 86278a3 fa4db4b 86278a3 fa4db4b 86278a3 fa4db4b 86278a3 fa4db4b 86278a3 fa4db4b 6c8618f 37ed527 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
---
title: Lightweight Chatbot
emoji: π
colorFrom: purple
colorTo: yellow
sdk: docker
app_port: 8501
pinned: false
license: mit
---
# π€ Ollama AI Assistant
This project hosts a lightweight AI assistant powered by **Ollama**, **FastAPI**, and **Streamlit**, all bundled in a single Docker environment.
## π Overview
- **Ollama** β Runs and serves the LLM model.
- **FastAPI** β Handles backend API requests to interact with the model.
- **Streamlit** β Provides a user-friendly web UI.
- **Docker** β Runs everything in isolated and reproducible containers.
---
## π§ How It Works
1. **Ollama** loads the LLM model: `krishna_choudhary/lightweight_chatbot`.
2. **FastAPI** provides an API backend (running on internal port `7860`) for prompt-response communication.
3. **Streamlit UI** (exposed on port `8501`) lets users enter prompts and receive responses.
4. The UI interacts with FastAPI, which in turn queries the LLM via Ollama.
---
## π₯οΈ User Interface
By default, the **Streamlit UI** is the primary interface and launches at:
|