Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,10 +2,7 @@ import gradio as gr
|
|
| 2 |
js = """
|
| 3 |
function redirect()
|
| 4 |
{
|
| 5 |
-
|
| 6 |
-
const current_path = window.location.pathname;
|
| 7 |
-
const url = cloudflare_preview + current_path
|
| 8 |
-
window.location.href = url;
|
| 9 |
}
|
| 10 |
"""
|
| 11 |
with gr.Blocks(js=js) as demo:
|
|
|
|
| 2 |
js = """
|
| 3 |
function redirect()
|
| 4 |
{
|
| 5 |
+
window.location.href = = 'https://41e124ab.gradio-website.pages.dev/playground';
|
|
|
|
|
|
|
|
|
|
| 6 |
}
|
| 7 |
"""
|
| 8 |
with gr.Blocks(js=js) as demo:
|