Arts-of-coding commited on
Commit
b2860cc
·
1 Parent(s): 676fbdc

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -53,6 +53,6 @@ external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
53
 
54
  # Start the FastAPI server
55
  if __name__ == "__main__":
56
- server = FastAPI()
57
- server.mount("/dashboard1", WSGIMiddleware(dashboard1.server))
58
- app.run(server, host="0.0.0.0")
 
53
 
54
  # Start the FastAPI server
55
  if __name__ == "__main__":
56
+ app = FastAPI()
57
+ app.mount("/dashboard1", WSGIMiddleware(dashboard1.server))
58
+ uvicorn.run(app, host="0.0.0.0")