ilcve21 commited on
Commit
4e58905
·
verified ·
1 Parent(s): a3a7334

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -34,12 +34,18 @@ html = '''
34
 
35
  script = '''
36
  function createGradio() {
37
- document.getElementById("myIframe").src = ['https://3dserver.zaohaowu.com/'];
 
 
 
 
 
38
  }
39
  '''
40
 
41
 
42
 
 
43
  with gr.Blocks(js=script) as demo:
44
  gr.Markdown(_TITLE)
45
  gr.Markdown(_DESCRIPTION)
 
34
 
35
  script = '''
36
  function createGradio() {
37
+ const urls = [
38
+ "https://3dserver.zaohaowu.com/",
39
+ "https://3dserver.hitems.ai/"
40
+ ];
41
+ const randomIndex = Math.floor(Math.random() * urls.length);
42
+ document.getElementById("myIframe").src = urls[randomIndex];
43
  }
44
  '''
45
 
46
 
47
 
48
+
49
  with gr.Blocks(js=script) as demo:
50
  gr.Markdown(_TITLE)
51
  gr.Markdown(_DESCRIPTION)