Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -34,12 +34,18 @@ html = '''
|
|
34 |
|
35 |
script = '''
|
36 |
function createGradio() {
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
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)
|