showme commited on
Commit
05ce864
·
verified ·
1 Parent(s): 4aa1797

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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)