Spaces:
Paused
Paused
Update README.md
Browse files
README.md
CHANGED
@@ -1,13 +1,22 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: docker
|
7 |
-
|
8 |
-
|
9 |
-
license: mit
|
10 |
---
|
11 |
|
12 |
-
#
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
title: Minimal FastAPI Test
|
3 |
+
emoji: π
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: green
|
6 |
sdk: docker
|
7 |
+
app_port: 8000
|
8 |
+
health_check_path: /health
|
|
|
9 |
---
|
10 |
|
11 |
+
# Minimal FastAPI Test
|
12 |
+
|
13 |
+
This is a minimal FastAPI app to test deployment on Hugging Face Spaces. It includes the following endpoints:
|
14 |
+
|
15 |
+
- `/`: Returns a simple health check response.
|
16 |
+
- `/health`: Health check endpoint for Hugging Face Spaces.
|
17 |
+
- `/ping`: Returns a "pong" message.
|
18 |
+
- `/echo`: Echoes back the text sent in a POST request.
|
19 |
+
|
20 |
+
## Deployment
|
21 |
+
|
22 |
+
This app uses a `Dockerfile` to deploy a FastAPI app with Uvicorn. The health check path is set to `/health` to ensure Hugging Face Spaces can verify the app is running.
|