Spaces:
Sleeping
Sleeping
Rename app.py to main.py
Browse files- 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 |
+
|