Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -149,5 +149,10 @@ async def query(question_request: QuestionRequest):
|
|
149 |
raise HTTPException(status_code=500, detail="Internal Server Error")
|
150 |
|
151 |
|
|
|
|
|
|
|
|
|
|
|
152 |
#if __name__ == '__main__':
|
153 |
#uvicorn.run(app, host='0.0.0.0', port=7860)
|
|
|
149 |
raise HTTPException(status_code=500, detail="Internal Server Error")
|
150 |
|
151 |
|
152 |
+
@app.get('/')
|
153 |
+
async def home():
|
154 |
+
return RedirectResponse(url="/docs")
|
155 |
+
|
156 |
+
|
157 |
#if __name__ == '__main__':
|
158 |
#uvicorn.run(app, host='0.0.0.0', port=7860)
|