Moncey10 commited on
Commit
0eb7453
·
1 Parent(s): 069c35a

Add hospital chatbot

Browse files
Files changed (4) hide show
  1. .dockerignore +11 -0
  2. Dockerfile +14 -0
  3. README.md +24 -0
  4. requirements.txt +6 -6
.dockerignore ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .env
2
+ __pycache__/
3
+ *.pyc
4
+ *.pyo
5
+ myenv/
6
+ venv/
7
+ node_modules/
8
+ .git
9
+ .gitignore
10
+ *.md
11
+ migrate_db.py
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y --no-install-recommends gcc && rm -rf /var/lib/apt/lists/*
6
+
7
+ COPY requirements.txt .
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+
10
+ COPY . .
11
+
12
+ EXPOSE 7860
13
+
14
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
README.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Hospital Chatbot
3
+ emoji: 🏥
4
+ colorFrom: blue
5
+ colorTo: indigo
6
+ sdk: docker
7
+ app_port: 7860
8
+ ---
9
+
10
+ # MedBot - Hospital Admin Assistant
11
+
12
+ An AI-powered hospital administration chatbot built with FastAPI and Groq LLM.
13
+
14
+ ## Features
15
+ - Patient record management (search, add, discharge)
16
+ - Doctor-patient assignments
17
+ - Appointment management
18
+ - Disease statistics
19
+
20
+ ## Environment Variables
21
+ Set these in your Hugging Face Space settings:
22
+ - `GROQ_API_KEY` - Your Groq API key
23
+ - `SUPABASE_URL` - Your Supabase project URL
24
+ - `SUPABASE_KEY` - Your Supabase API key
requirements.txt CHANGED
@@ -1,6 +1,6 @@
1
- fastapi
2
- uvicorn
3
- httpx
4
- python-dotenv
5
- supabase
6
- psycopg2-binary
 
1
+ fastapi==0.115.0
2
+ uvicorn==0.32.0
3
+ httpx==0.27.0
4
+ python-dotenv==1.0.0
5
+ supabase==2.10.0
6
+ psycopg2-binary==2.9.10