harshSethi commited on
Commit
1b3db23
·
1 Parent(s): f5d1132

added a third file and implemented threading

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import threading
5
 
6
  # Start FastAPI in a separate thread
7
  def start_fastapi():
8
- uvicorn.run("fastapi_app:app", host="0.0.0.0", port=8000)
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)