pup-py commited on
Commit
520da73
·
1 Parent(s): 0af2a8e

redirect hack

Browse files
Files changed (1) hide show
  1. main.py +4 -0
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")