File size: 1,008 Bytes
ccaf9ab
 
 
 
 
3de5747
ccaf9ab
 
 
 
f114412
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
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.