Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -1,7 +1,5 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
app = FastAPI()
|
| 4 |
|
| 5 |
@app.get("/")
|
| 6 |
-
def
|
| 7 |
-
return
|
|
|
|
| 1 |
+
app.mount("/", StaticFiles(directory="static", html=True), name="static")
|
|
|
|
|
|
|
| 2 |
|
| 3 |
@app.get("/")
|
| 4 |
+
def index() -> FileResponse:
|
| 5 |
+
return FileResponse(path="/app/static/index.html", media_type="text/html")
|