Avinashnalla7 commited on
Commit
43c18bf
·
1 Parent(s): 5a4ddf5

chore: add app.py entrypoint

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import os
2
+ import uvicorn
3
+
4
+ if __name__ == "__main__":
5
+ host = "0.0.0.0"
6
+ port = int(os.environ.get("PORT", "7860"))
7
+ uvicorn.run("backend.api:app", host=host, port=port)