licorne2lc commited on
Commit
21b208a
·
1 Parent(s): 46e2bfc

Remove main block for Hugging Face compatibility

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -68,7 +68,5 @@ async def predict(car_options: CarOptions):
68
  return {"predictions": formatted}
69
 
70
 
71
- if __name__ == "__main__":
72
- port = int(os.environ.get("PORT", 7860)) # Hugging Face utilisera automatiquement ce port
73
- uvicorn.run(app, host="0.0.0.0", port=port)
74
 
 
68
  return {"predictions": formatted}
69
 
70
 
71
+
 
 
72