davidepanza commited on
Commit
c6d1805
·
verified ·
1 Parent(s): d8a969c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -88,4 +88,8 @@ async def serve_react_app(full_path: str):
88
  # Don't serve React for API routes
89
  if full_path.startswith("api/") or full_path in ["health", "tables", "docs", "redoc"]:
90
  raise HTTPException(status_code=404, detail="Not found")
91
- return FileResponse('dist/index.html')
 
 
 
 
 
88
  # Don't serve React for API routes
89
  if full_path.startswith("api/") or full_path in ["health", "tables", "docs", "redoc"]:
90
  raise HTTPException(status_code=404, detail="Not found")
91
+ return FileResponse('dist/index.html')
92
+
93
+ if __name__ == "__main__":
94
+ import uvicorn
95
+ uvicorn.run(app, host="0.0.0.0", port=7860)