Spaces:
Runtime error
Runtime error
AnishKumbhar
commited on
Commit
•
9396581
1
Parent(s):
89ad13d
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ async def predict_endpoint(image: UploadFile):
|
|
32 |
return {"prediction": prediction}
|
33 |
|
34 |
# Start the FastAPI app
|
35 |
-
if
|
36 |
import uvicorn
|
37 |
|
38 |
uvicorn.run(app, host="0.0.0.0", port=8000)
|
|
|
32 |
return {"prediction": prediction}
|
33 |
|
34 |
# Start the FastAPI app
|
35 |
+
if __name__ == "__main__":
|
36 |
import uvicorn
|
37 |
|
38 |
uvicorn.run(app, host="0.0.0.0", port=8000)
|