Spaces:
Sleeping
Sleeping
Sandhya
commited on
Commit
·
3852212
1
Parent(s):
730ce8b
PQ
Browse files
app.py
CHANGED
|
@@ -350,19 +350,25 @@ Please process all {len(all_tags)} tags: {", ".join(all_tags)}
|
|
| 350 |
|
| 351 |
|
| 352 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 353 |
@app.get("/")
|
| 354 |
-
async def
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
"name":"HF Tagging Bot",
|
| 358 |
-
"status":"running",
|
| 359 |
-
"description":"Webhook listener for automatic model tagging",
|
| 360 |
-
"endpoints":{
|
| 361 |
-
"webhook":"/webhook",
|
| 362 |
-
"health":"/health",
|
| 363 |
-
"operations":"/operations"
|
| 364 |
-
}
|
| 365 |
-
}
|
| 366 |
|
| 367 |
@app.get("/health")
|
| 368 |
async def health_check():
|
|
|
|
| 350 |
|
| 351 |
|
| 352 |
|
| 353 |
+
# @app.get("/")
|
| 354 |
+
# async def root():
|
| 355 |
+
# """Root endpoint with basic information"""
|
| 356 |
+
# return {
|
| 357 |
+
# "name":"HF Tagging Bot",
|
| 358 |
+
# "status":"running",
|
| 359 |
+
# "description":"Webhook listener for automatic model tagging",
|
| 360 |
+
# "endpoints":{
|
| 361 |
+
# "webhook":"/webhook",
|
| 362 |
+
# "health":"/health",
|
| 363 |
+
# "operations":"/operations"
|
| 364 |
+
# }
|
| 365 |
+
# }
|
| 366 |
+
|
| 367 |
+
from fastapi.responses import RedirectResponse
|
| 368 |
@app.get("/")
|
| 369 |
+
async def root_direct():
|
| 370 |
+
return RedirectResponse(url="/gradio")
|
| 371 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 372 |
|
| 373 |
@app.get("/health")
|
| 374 |
async def health_check():
|