LawChatbot / README.md
NLPGenius's picture
Update sdk to docker for Hugging Face Spaces
3de5747
---
title: LawChatbot Panel
emoji: ⚖️
colorFrom: blue
colorTo: indigo
sdk: docker
app_file: app.py
pinned: false
---
# LawChatbot for Hugging Face Spaces
This is a deployment-ready version of the LawChatbot Panel app for Hugging Face Spaces. It uses FastAPI and Jinja2 for the web interface.
## Features
- Ask legal questions and get answers with context documents.
- Powered by RAG, Weaviate, and OpenAI.
## How to deploy
1. Push this folder to a public Hugging Face repository.
2. Hugging Face Spaces will automatically install dependencies from `requirements.txt` and run `app.py`.
## File structure
- `app.py`: FastAPI entry point for the chatbot panel.
- `requirements.txt`: Python dependencies.
- `templates/`: Jinja2 HTML templates.
- `static/`: CSS and static assets.
## Usage
Open the Space and interact with the chatbot via the web UI.
## Note
- Do not include any private keys in public repositories.
- Make sure your API keys are set via Hugging Face Secrets or environment variables.