Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -42,7 +42,5 @@ def get_text():
|
|
| 42 |
return {"text": content}
|
| 43 |
|
| 44 |
@app.get("/")
|
| 45 |
-
def
|
| 46 |
-
url
|
| 47 |
-
response = RedirectResponse(url=url)
|
| 48 |
-
return response
|
|
|
|
| 42 |
return {"text": content}
|
| 43 |
|
| 44 |
@app.get("/")
|
| 45 |
+
async def redirect_to_docs():
|
| 46 |
+
return RedirectResponse(url="/docs")
|
|
|
|
|
|