Spaces:
Running
Running
Add Hugging Face Spaces metadata
Browse files
README.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
| 4 |
|
| 5 |
## Setup
|
| 6 |
|
|
@@ -14,14 +24,11 @@ pip install -r requirements.txt
|
|
| 14 |
2. Run the app:
|
| 15 |
```bash
|
| 16 |
python app.py
|
| 17 |
-
# or
|
| 18 |
-
uvicorn app:app --host 0.0.0.0 --port 8002 --reload
|
| 19 |
```
|
| 20 |
|
| 21 |
3. Access the API:
|
| 22 |
- API: http://localhost:8002
|
| 23 |
-
-
|
| 24 |
-
- ReDoc: http://localhost:8002/redoc
|
| 25 |
|
| 26 |
### Docker
|
| 27 |
|
|
@@ -111,5 +118,5 @@ curl "http://localhost:8002/generate-single?seed=42" --output face.png
|
|
| 111 |
- Returns images as PNG
|
| 112 |
- Grid layout for multiple faces
|
| 113 |
- Reproducible generation with seeds
|
| 114 |
-
-
|
| 115 |
- Health check endpoints
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Face Generator
|
| 3 |
+
emoji: 🎨
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: pink
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_port: 8002
|
| 8 |
+
pinned: false
|
| 9 |
+
---
|
| 10 |
|
| 11 |
+
# Face Generator Flask API
|
| 12 |
+
|
| 13 |
+
Flask service for the GAN-based face generation model.
|
| 14 |
|
| 15 |
## Setup
|
| 16 |
|
|
|
|
| 24 |
2. Run the app:
|
| 25 |
```bash
|
| 26 |
python app.py
|
|
|
|
|
|
|
| 27 |
```
|
| 28 |
|
| 29 |
3. Access the API:
|
| 30 |
- API: http://localhost:8002
|
| 31 |
+
- Health check: http://localhost:8002/health
|
|
|
|
| 32 |
|
| 33 |
### Docker
|
| 34 |
|
|
|
|
| 118 |
- Returns images as PNG
|
| 119 |
- Grid layout for multiple faces
|
| 120 |
- Reproducible generation with seeds
|
| 121 |
+
- Simple Flask API
|
| 122 |
- Health check endpoints
|