Spaces:
Running
Running
Docker & Readme
Browse files- Dockerfile +27 -0
- README.md +35 -27
Dockerfile
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use Python 3.10 slim image as base
|
2 |
+
FROM python:3.10-slim
|
3 |
+
|
4 |
+
# Install system dependencies
|
5 |
+
RUN apt-get update && \
|
6 |
+
apt-get install -y --no-install-recommends \
|
7 |
+
ffmpeg \
|
8 |
+
git \
|
9 |
+
&& rm -rf /var/lib/apt/lists/*
|
10 |
+
|
11 |
+
# Set working directory
|
12 |
+
WORKDIR /code
|
13 |
+
|
14 |
+
# Copy requirements file
|
15 |
+
COPY requirements.txt .
|
16 |
+
|
17 |
+
# Install Python dependencies
|
18 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
19 |
+
|
20 |
+
# Copy all application code
|
21 |
+
COPY . .
|
22 |
+
|
23 |
+
# Expose the port
|
24 |
+
EXPOSE 7860
|
25 |
+
|
26 |
+
# Run the FastAPI server
|
27 |
+
CMD ["python", "server.py"]
|
README.md
CHANGED
@@ -1,27 +1,35 @@
|
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: Tabi AI Agent Server
|
3 |
+
emoji: π±
|
4 |
+
colorFrom: green
|
5 |
+
colorTo: blue
|
6 |
+
sdk: docker
|
7 |
+
app_port: 7860
|
8 |
+
pinned: false
|
9 |
+
license: mit
|
10 |
+
---
|
11 |
+
|
12 |
+
# Tabi - AI Wellness Assistant Server
|
13 |
+
|
14 |
+
A FastAPI-based voice and text chat server for the Tabi wellness assistant. This server provides personalized wellness guidance across multiple domains through both text and voice interactions.
|
15 |
+
|
16 |
+
## π Features
|
17 |
+
|
18 |
+
- **Voice Chat**: Real-time speech-to-text and text-to-speech processing
|
19 |
+
- **Text Chat**: Traditional text-based conversations
|
20 |
+
- **Multi-Domain Routing**: Intelligent routing to specialized wellness areas:
|
21 |
+
- Mental health and stress management
|
22 |
+
- Physical fitness and nutrition
|
23 |
+
- Financial wellness
|
24 |
+
- Vocational/career guidance
|
25 |
+
- Social relationships
|
26 |
+
- Spiritual wellness
|
27 |
+
- Environmental health
|
28 |
+
- Intellectual development
|
29 |
+
- **Personalized Responses**: Context-aware responses based on user profiles and history
|
30 |
+
- **Smart Caching**: Optimized performance with intelligent caching systems
|
31 |
+
- **Goal Management**: Help users set and track wellness goals
|
32 |
+
|
33 |
+
## π API Endpoints
|
34 |
+
|
35 |
+
### Text Chat
|