Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -48,13 +48,11 @@ external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
|
|
| 48 |
|
| 49 |
######################################################################
|
| 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.mount('/dashboard1', WSGIMiddleware(dashboard1.server))
|
| 57 |
-
|
| 58 |
# Start the FastAPI server
|
| 59 |
if __name__ == "__main__":
|
| 60 |
-
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
######################################################################
|
| 50 |
# Define the FastAPI server
|
|
|
|
| 51 |
# Mount the Dash app as a sub-application in the FastAPI server
|
| 52 |
#app.mount("/dashboard2", WSGIMiddleware(dashboard2.server))
|
| 53 |
|
|
|
|
|
|
|
|
|
|
| 54 |
# Start the FastAPI server
|
| 55 |
if __name__ == "__main__":
|
| 56 |
+
server = FastAPI()
|
| 57 |
+
server.mount("/dashboard1", WSGIMiddleware(dashboard1.server))
|
| 58 |
+
uvicorn.run(server, host="0.0.0.0")
|