Spaces:
Sleeping
Sleeping
File size: 1,323 Bytes
0715650 02e4173 0715650 02e4173 0715650 02e4173 0715650 02e4173 |
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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
---
title: AgriBot
emoji: π±
colorFrom: green
colorTo: green
sdk: docker
app_port: 7860
pinned: false
license: mit
---
# π± Agricash Chatbot Overlay
This project provides a fully customizable chatbot overlay that sits on top of the Agricash web application.
It includes:
### β Custom HTML/CSS/JS Chat Widget
The chat widget is styled with an agriculture theme and appears as a floating assistant on the page.
### β FastAPI Backend
The backend is implemented using FastAPI and runs inside a Hugging Face Docker Space.
Endpoint structure:
- `GET /` β Serves the chat UI (index.html)
- `POST /chat` β Handles chatbot messages (currently placeholder logic)
### β Iframe Integration
The chatbot overlay loads the Agricash website inside an iframe while keeping the chat widget on top.
### β Ready for LLM Integration
The backend is designed so the `/chat` endpoint can easily be updated to use any Hugging Face-supported LLM (e.g., Llama 3, Mixtral, Phi-3).
---
## π Local Development
Build the Docker image:
```bash
docker build -t agricash-chatbot .
````
Run it locally:
```bash
docker run -p 7860:7860 agricash-chatbot
```
Open in browser:
```
http://localhost:7860/
```
---
## π Contact
For improvements or future integration with real LLM models, feel free to reach out. |