Spaces:
Sleeping
Sleeping
metadata
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:
docker build -t agricash-chatbot .
Run it locally:
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.