CaffeinatedCoding commited on
Commit
7df0705
·
verified ·
1 Parent(s): baf2d09

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. start.sh +4 -4
app.py CHANGED
@@ -14,7 +14,7 @@ import io
14
  import numpy as np
15
 
16
 
17
- API_BASE = "http://localhost:7860"
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
- # Start FastAPI in background
3
- uvicorn api.main:app --host 0.0.0.0 --port 7860 &
4
 
5
  # Wait for FastAPI to be ready
6
- sleep 10
7
 
8
- # Start Gradio on port 7861
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