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