Arts-of-coding commited on
Commit
0ce5ce1
·
verified ·
1 Parent(s): d1b143e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -50,13 +50,13 @@ external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
50
  # Define the FastAPI server
51
  app = FastAPI()
52
  # Mount the Dash app as a sub-application in the FastAPI server
53
- app.mount("/", WSGIMiddleware(dashboard1.server))
54
  #app.mount("/dashboard2", WSGIMiddleware(dashboard2.server))
55
 
56
  # Define the main API endpoint
57
  @app.get("/")
58
- #def index():
59
- # return "Hello"
 
60
 
61
  # Start the FastAPI server
62
  if __name__ == "__main__":
 
50
  # Define the FastAPI server
51
  app = FastAPI()
52
  # Mount the Dash app as a sub-application in the FastAPI server
 
53
  #app.mount("/dashboard2", WSGIMiddleware(dashboard2.server))
54
 
55
  # Define the main API endpoint
56
  @app.get("/")
57
+ def index():
58
+ return "Hello"
59
+ app.mount("/", WSGIMiddleware(dashboard1.server))
60
 
61
  # Start the FastAPI server
62
  if __name__ == "__main__":