Spaces:
Runtime error
Runtime error
Change Gradio UI (default landing page)
Browse files
app.py
CHANGED
|
@@ -83,7 +83,7 @@ gradio_app = gr.Interface(
|
|
| 83 |
)
|
| 84 |
|
| 85 |
# Mount Gradio app to FastAPI
|
| 86 |
-
gr.mount_gradio_app(app, gradio_app, path="/
|
| 87 |
|
| 88 |
@app.get("/health")
|
| 89 |
async def health_check():
|
|
@@ -175,6 +175,13 @@ async def root():
|
|
| 175 |
}
|
| 176 |
}
|
| 177 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
if __name__ == "__main__":
|
| 179 |
import uvicorn
|
| 180 |
logger.info("🚀 Starting SLAQ Stutter Detector API...")
|
|
|
|
| 83 |
)
|
| 84 |
|
| 85 |
# Mount Gradio app to FastAPI
|
| 86 |
+
gr.mount_gradio_app(app, gradio_app, path="/")
|
| 87 |
|
| 88 |
@app.get("/health")
|
| 89 |
async def health_check():
|
|
|
|
| 175 |
}
|
| 176 |
}
|
| 177 |
|
| 178 |
+
@app.get("/")
|
| 179 |
+
async def root():
|
| 180 |
+
"""Redirect to Gradio UI - handled by gr.mount_gradio_app"""
|
| 181 |
+
# This will be overridden by Gradio mounting at "/"
|
| 182 |
+
# Users will see the Gradio UI when visiting "/"
|
| 183 |
+
pass
|
| 184 |
+
|
| 185 |
if __name__ == "__main__":
|
| 186 |
import uvicorn
|
| 187 |
logger.info("🚀 Starting SLAQ Stutter Detector API...")
|