Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -327,10 +327,9 @@ async def list_documents():
|
|
| 327 |
|
| 328 |
return {"documents": documents}
|
| 329 |
|
| 330 |
-
@app.get("/")
|
| 331 |
async def root():
|
| 332 |
-
return
|
| 333 |
|
| 334 |
if __name__ == "__main__":
|
| 335 |
-
# Run the FastAPI app
|
| 336 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
|
| 327 |
|
| 328 |
return {"documents": documents}
|
| 329 |
|
| 330 |
+
@app.get("/", include_in_schema=False)
|
| 331 |
async def root():
|
| 332 |
+
return RedirectResponse(url="/docs")
|
| 333 |
|
| 334 |
if __name__ == "__main__":
|
|
|
|
| 335 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|