Spaces:
Runtime error
Runtime error
Commit ·
1b3db23
1
Parent(s): f5d1132
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("
|
| 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="127.0.0.0", port=8000)
|
| 9 |
|
| 10 |
# Start FastAPI thread
|
| 11 |
fastapi_thread = threading.Thread(target= start_fastapi)
|