KJ24 commited on
Commit
d3e185f
·
verified ·
1 Parent(s): 8dd4433

Rename app.py to main.py

Browse files
Files changed (1) hide show
  1. app.py → main.py +7 -0
app.py → main.py RENAMED
@@ -61,3 +61,10 @@ async def upload(file: UploadFile = File(...)):
61
  @app.get("/")
62
  def ping():
63
  return {"message": "L'API fonctionne ✅"}
 
 
 
 
 
 
 
 
61
  @app.get("/")
62
  def ping():
63
  return {"message": "L'API fonctionne ✅"}
64
+
65
+
66
+ import uvicorn
67
+
68
+ if __name__ == "__main__":
69
+ uvicorn.run("main:app", host="0.0.0.0", port=7860)
70
+