Spaces:
Sleeping
Sleeping
correct https redirect
Browse files
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}/
|
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 |
|