Spaces:
Runtime error
Runtime error
Commit ·
191d874
1
Parent(s): 1b3db23
added a third file and implemented threading
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import threading
|
|
| 5 |
|
| 6 |
# Start FastAPI in a separate thread
|
| 7 |
def start_fastapi():
|
| 8 |
-
uvicorn.run("calc_fast_api:app", host="
|
| 9 |
|
| 10 |
# Start FastAPI thread
|
| 11 |
fastapi_thread = threading.Thread(target= start_fastapi)
|
|
|
|
| 5 |
|
| 6 |
# Start FastAPI in a separate thread
|
| 7 |
def start_fastapi():
|
| 8 |
+
uvicorn.run("calc_fast_api:app", host="0.0.0.0", port=8000)
|
| 9 |
|
| 10 |
# Start FastAPI thread
|
| 11 |
fastapi_thread = threading.Thread(target= start_fastapi)
|