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