Spaces:
Sleeping
Sleeping
HanningChen
commited on
Commit
·
eb5ae20
1
Parent(s):
696fa29
Fix bug
Browse files- webui/app.py +5 -2
webui/app.py
CHANGED
|
@@ -184,7 +184,7 @@ runner = ModelRunner(
|
|
| 184 |
forward_thre=0.1,
|
| 185 |
)
|
| 186 |
|
| 187 |
-
|
| 188 |
@app.get("/", response_class=HTMLResponse)
|
| 189 |
def index(request: Request):
|
| 190 |
task_ids = runner.list_task_ids()
|
|
@@ -205,7 +205,10 @@ def index(request: Request):
|
|
| 205 |
"task_items": task_items
|
| 206 |
},
|
| 207 |
)
|
| 208 |
-
|
|
|
|
|
|
|
|
|
|
| 209 |
|
| 210 |
@app.post("/api/run")
|
| 211 |
async def api_run(
|
|
|
|
| 184 |
forward_thre=0.1,
|
| 185 |
)
|
| 186 |
|
| 187 |
+
"""
|
| 188 |
@app.get("/", response_class=HTMLResponse)
|
| 189 |
def index(request: Request):
|
| 190 |
task_ids = runner.list_task_ids()
|
|
|
|
| 205 |
"task_items": task_items
|
| 206 |
},
|
| 207 |
)
|
| 208 |
+
"""
|
| 209 |
+
@app.get("/")
|
| 210 |
+
def root():
|
| 211 |
+
return {"ok": True, "message": "Backend is running. Use POST /api/run and open /docs."}
|
| 212 |
|
| 213 |
@app.post("/api/run")
|
| 214 |
async def api_run(
|