Spaces:
Running
Running
Commit
Β·
147d161
1
Parent(s):
422431d
HF Spaces
Browse files- Dockerfile +0 -14
- README.md +11 -15
Dockerfile
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
FROM python:3.10-slim
|
2 |
-
|
3 |
-
WORKDIR /app
|
4 |
-
|
5 |
-
COPY requirements.txt .
|
6 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
7 |
-
|
8 |
-
COPY . .
|
9 |
-
|
10 |
-
# Expose the port that FastAPI will run on
|
11 |
-
EXPOSE 7860
|
12 |
-
|
13 |
-
# Command to run the FastAPI application
|
14 |
-
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
@@ -1,3 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# Backend (FastAPI)
|
2 |
|
3 |
## Structure
|
@@ -25,18 +36,3 @@ uvicorn api:app --reload --host 0.0.0.0 --port 8000
|
|
25 |
**Do not commit your real `.env` file! Use `.env.example` for reference.**
|
26 |
|
27 |
---
|
28 |
-
|
29 |
-
## Hugging Face Spaces Configuration
|
30 |
-
|
31 |
-
The following configuration is for deploying to Hugging Face Spaces:
|
32 |
-
|
33 |
-
```yaml
|
34 |
-
title: ChatDocxAI
|
35 |
-
emoji: π
|
36 |
-
colorFrom: indigo
|
37 |
-
colorTo: blue
|
38 |
-
sdk: gradio
|
39 |
-
pinned: false
|
40 |
-
```
|
41 |
-
|
42 |
-
For a FastAPI backend with Gradio interface on Hugging Face Spaces.
|
|
|
1 |
+
---
|
2 |
+
title: ChatDocxAI
|
3 |
+
emoji: π
|
4 |
+
colorFrom: indigo
|
5 |
+
colorTo: blue
|
6 |
+
sdk: gradio
|
7 |
+
sdk_version: 4.19.2
|
8 |
+
app_file: app.py
|
9 |
+
pinned: false
|
10 |
+
---
|
11 |
+
|
12 |
# Backend (FastAPI)
|
13 |
|
14 |
## Structure
|
|
|
36 |
**Do not commit your real `.env` file! Use `.env.example` for reference.**
|
37 |
|
38 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|