Neon-AI commited on
Commit
e3c6be7
·
verified ·
1 Parent(s): 3584130

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -79,4 +79,12 @@ async def extract(req: DownloadRequest):
79
  raise HTTPException(
80
  status_code=500,
81
  detail=f"Extractor error: {str(e)}"
82
- )
 
 
 
 
 
 
 
 
 
79
  raise HTTPException(
80
  status_code=500,
81
  detail=f"Extractor error: {str(e)}"
82
+ )
83
+
84
+ if __name__ == "__main__":
85
+ uvicorn.run(
86
+ "app:app",
87
+ host="0.0.0.0",
88
+ port=int(os.environ.get("PORT", 7860)),
89
+ log_level="info"
90
+ )