Add missing uvicorn server startup
This commit is contained in:
@@ -242,3 +242,9 @@ async def snapshot():
|
||||
raise
|
||||
except Exception as e:
|
||||
raise HTTPException(status_code=500, detail=str(e))
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
import uvicorn
|
||||
uvicorn.run(app, host="0.0.0.0", port=8100)
|
||||
|
||||
Reference in New Issue
Block a user