Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -35,8 +35,9 @@ async def Predict_Sentiment(text_input: TextInput):
|
|
| 35 |
raise HTTPException(status_code=500, detail=str(e))
|
| 36 |
|
| 37 |
@app.get('/')
|
| 38 |
-
async def
|
| 39 |
-
return "Welcome to Financial Sentiment Analysis API"
|
|
|
|
| 40 |
|
| 41 |
|
| 42 |
#ngrok_tunnel = ngrok.connect(8000)
|
|
|
|
| 35 |
raise HTTPException(status_code=500, detail=str(e))
|
| 36 |
|
| 37 |
@app.get('/')
|
| 38 |
+
async def home():
|
| 39 |
+
#return "Welcome to Financial Sentiment Analysis API"
|
| 40 |
+
return RedirectResponse(url="/docs")
|
| 41 |
|
| 42 |
|
| 43 |
#ngrok_tunnel = ngrok.connect(8000)
|