Sergidev commited on
Commit
05ed820
1 Parent(s): 0020dc7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -35,9 +35,4 @@ async def sleep():
35
  print(f"[SYSTEM] Error: {str(e)}")
36
  return {"error": str(e)}
37
 
38
- if __name__ == "__main__":
39
- import uvicorn
40
- import asyncio
41
-
42
- loop = asyncio.get_event_loop()
43
- loop.run_until_complete(uvicorn.run(app, host="0.0.0.0", port=int(os.environ.get("PORT", 8000))))
 
35
  print(f"[SYSTEM] Error: {str(e)}")
36
  return {"error": str(e)}
37
 
38
+ # Remove the main function as Hugging Face Spaces will automatically run the app