Update app.py
Browse files
app.py
CHANGED
|
@@ -489,12 +489,13 @@ app = FastAPI(
|
|
| 489 |
version="1.0.0",
|
| 490 |
)
|
| 491 |
|
|
|
|
| 492 |
# Serve the HTML frontend
|
| 493 |
@app.get("/", response_class=HTMLResponse)
|
| 494 |
async def get_index():
|
| 495 |
"""Serves the interactive frontend."""
|
| 496 |
# This assumes index.html is in the same directory as app.py
|
| 497 |
-
|
| 498 |
with open("index.html", "r") as f:
|
| 499 |
return HTMLResponse(content=f.read())
|
| 500 |
|
|
|
|
| 489 |
version="1.0.0",
|
| 490 |
)
|
| 491 |
|
| 492 |
+
# Serve the HTML frontend
|
| 493 |
# Serve the HTML frontend
|
| 494 |
@app.get("/", response_class=HTMLResponse)
|
| 495 |
async def get_index():
|
| 496 |
"""Serves the interactive frontend."""
|
| 497 |
# This assumes index.html is in the same directory as app.py
|
| 498 |
+
# Explicitly copy index.html to /app/index.html to avoid any ambiguity with '.' [cite: 9]
|
| 499 |
with open("index.html", "r") as f:
|
| 500 |
return HTMLResponse(content=f.read())
|
| 501 |
|