pup-py commited on
Commit
8f06d79
·
1 Parent(s): a0cf33f

correct https redirect

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -177,7 +177,7 @@ app = gr.mount_gradio_app(app, gradio_sql_interface, path="/sql")
177
  def redirect_to_example():
178
  hf_space_host = getenv("SPACE_HOST")
179
  if hf_space_host:
180
- return RedirectResponse(f"https://{hf_space_host}/q?alias=example1")
181
  else:
182
  return RedirectResponse("/sql?alias=example1")
183
 
 
177
  def redirect_to_example():
178
  hf_space_host = getenv("SPACE_HOST")
179
  if hf_space_host:
180
+ return RedirectResponse(f"https://{hf_space_host}/sql?alias=example1")
181
  else:
182
  return RedirectResponse("/sql?alias=example1")
183