Update app.py
Browse files
app.py
CHANGED
@@ -17,3 +17,7 @@ class TextRequest(BaseModel):
|
|
17 |
async def predict(request: TextRequest):
|
18 |
result = sentiment_model(request.text)
|
19 |
return {"result": result}
|
|
|
|
|
|
|
|
|
|
17 |
async def predict(request: TextRequest):
|
18 |
result = sentiment_model(request.text)
|
19 |
return {"result": result}
|
20 |
+
|
21 |
+
if __name__ == "__main__":
|
22 |
+
import uvicorn
|
23 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|