Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,11 +24,10 @@ api_script = os.path.join(CODE_DIR, "app.py")
|
|
| 24 |
if not os.path.exists(api_script):
|
| 25 |
raise FileNotFoundError("❌ hidden_code/app.py not found")
|
| 26 |
|
| 27 |
-
# Run FastAPI with uvicorn
|
| 28 |
os.execvp("uvicorn", [
|
| 29 |
"uvicorn", "app:app",
|
| 30 |
"--host", "0.0.0.0",
|
| 31 |
-
"--port", "7860"
|
| 32 |
-
"--reload"
|
| 33 |
])
|
| 34 |
|
|
|
|
| 24 |
if not os.path.exists(api_script):
|
| 25 |
raise FileNotFoundError("❌ hidden_code/app.py not found")
|
| 26 |
|
| 27 |
+
# Run FastAPI with uvicorn (NO --reload)
|
| 28 |
os.execvp("uvicorn", [
|
| 29 |
"uvicorn", "app:app",
|
| 30 |
"--host", "0.0.0.0",
|
| 31 |
+
"--port", "7860"
|
|
|
|
| 32 |
])
|
| 33 |
|