Spaces:
Sleeping
Sleeping
Update fastapi_app.py
Browse files- fastapi_app.py +2 -0
fastapi_app.py
CHANGED
|
@@ -30,4 +30,6 @@ async def c(query:Query):
|
|
| 30 |
|
| 31 |
except Exception as e:
|
| 32 |
raise HTTPException(detail = str(e) , status_code = 500)
|
|
|
|
|
|
|
| 33 |
|
|
|
|
| 30 |
|
| 31 |
except Exception as e:
|
| 32 |
raise HTTPException(detail = str(e) , status_code = 500)
|
| 33 |
+
if __name__ == "__main__":
|
| 34 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|
| 35 |
|