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

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("/dashboard1", 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("/", 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__":