kanishcr7 commited on
Commit
6e01f2b
·
1 Parent(s): 55609dc

Final Submission: Added SOC Dashboard and fixed UI explorer

Browse files
Files changed (1) hide show
  1. server/app.py +8 -0
server/app.py CHANGED
@@ -33,6 +33,14 @@ def create_openenv_app():
33
 
34
  app = create_openenv_app()
35
 
 
 
 
 
 
 
 
 
36
  def main(port: int | None = None) -> None:
37
  """Start the PatchHawk OpenEnv server."""
38
  import uvicorn
 
33
 
34
  app = create_openenv_app()
35
 
36
+ @app.get("/")
37
+ def root():
38
+ # When running without the nginx+Streamlit front-end, make the root page useful.
39
+ # (Hugging Face will often open `/` by default.)
40
+ from fastapi.responses import RedirectResponse
41
+
42
+ return RedirectResponse(url="/docs")
43
+
44
  def main(port: int | None = None) -> None:
45
  """Start the PatchHawk OpenEnv server."""
46
  import uvicorn