imnim commited on
Commit
a20582d
·
verified ·
1 Parent(s): 011aa0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -77,3 +77,12 @@ async def classify_email(data: EmailInput):
77
  return {"label": label_section}
78
  except Exception as e:
79
  raise HTTPException(status_code=500, detail=f"Model inference failed: {str(e)}")
 
 
 
 
 
 
 
 
 
 
77
  return {"label": label_section}
78
  except Exception as e:
79
  raise HTTPException(status_code=500, detail=f"Model inference failed: {str(e)}")
80
+
81
+
82
+
83
+
84
+ import uvicorn
85
+
86
+ if __name__ == "__main__":
87
+ uvicorn.run("app:app", host="0.0.0.0", port=7860, log_level="info")
88
+