Spaces:
Build error
Build error
redirect hack
Browse files
main.py
CHANGED
|
@@ -163,5 +163,9 @@ def change_hf_host(request: gr.Request):
|
|
| 163 |
app = gr.mount_gradio_app(app, gradio_sql_interface, path="/sql")
|
| 164 |
|
| 165 |
@app.get("/")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
def redirect_to_example():
|
| 167 |
return RedirectResponse("/sql?alias=example1")
|
|
|
|
| 163 |
app = gr.mount_gradio_app(app, gradio_sql_interface, path="/sql")
|
| 164 |
|
| 165 |
@app.get("/")
|
| 166 |
+
def redirect_hack():
|
| 167 |
+
return RedirectResponse("/redirecting")
|
| 168 |
+
|
| 169 |
+
@app.get("/redirecting")
|
| 170 |
def redirect_to_example():
|
| 171 |
return RedirectResponse("/sql?alias=example1")
|