aliabd HF staff commited on
Commit
588b8ea
1 Parent(s): 92119f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 url = current_path + cloudflare_preview
 
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
  """