Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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 |
-
|
| 59 |
-
|
|
|
|
| 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__":
|