Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ import io
|
|
| 14 |
import numpy as np
|
| 15 |
|
| 16 |
|
| 17 |
-
API_BASE = "http://localhost:
|
| 18 |
SESSION_ID = str(uuid.uuid4())
|
| 19 |
|
| 20 |
CATEGORIES = [
|
|
|
|
| 14 |
import numpy as np
|
| 15 |
|
| 16 |
|
| 17 |
+
API_BASE = "http://localhost:8000"
|
| 18 |
SESSION_ID = str(uuid.uuid4())
|
| 19 |
|
| 20 |
CATEGORIES = [
|
start.sh
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
-
#
|
| 3 |
-
uvicorn api.main:app --host 0.0.0.0 --port
|
| 4 |
|
| 5 |
# Wait for FastAPI to be ready
|
| 6 |
-
sleep
|
| 7 |
|
| 8 |
-
#
|
| 9 |
python app.py
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
+
# FastAPI on internal port 8000
|
| 3 |
+
uvicorn api.main:app --host 0.0.0.0 --port 8000 &
|
| 4 |
|
| 5 |
# Wait for FastAPI to be ready
|
| 6 |
+
sleep 15
|
| 7 |
|
| 8 |
+
# Gradio on 7860 (HF Spaces public port)
|
| 9 |
python app.py
|