DerYur commited on
Commit
25e4330
·
verified ·
1 Parent(s): 43e6afc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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