Spaces:
Sleeping
Sleeping
metadata
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
- Push this folder to a public Hugging Face repository.
- Hugging Face Spaces will automatically install dependencies from
requirements.txt
and runapp.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.