TheAarvee05 commited on
Commit
efa4d5f
·
verified ·
1 Parent(s): 11911b4

Upload server/app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. server/app.py +2 -1
server/app.py CHANGED
@@ -174,7 +174,8 @@ def _reward_payload(reward) -> dict:
174
 
175
  @app.get("/")
176
  def root() -> RedirectResponse:
177
- return RedirectResponse(url="/web", status_code=307)
 
178
 
179
 
180
  @app.get("/health")
 
174
 
175
  @app.get("/")
176
  def root() -> RedirectResponse:
177
+ # Use trailing slash to avoid an extra redirect hop by the mounted sub-app.
178
+ return RedirectResponse(url="/web/", status_code=307)
179
 
180
 
181
  @app.get("/health")