Upload server/app.py with huggingface_hub
Browse files- 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 |
-
|
|
|
|
| 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")
|