Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
+
|