wushuang98 commited on
Commit
7118d20
·
verified ·
1 Parent(s): 21a8ced

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -1,9 +1,12 @@
1
  import gradio as gr
 
 
 
2
 
3
  with gr.Blocks() as demo:
4
- gr.HTML("""
5
  <iframe
6
- src="https://api.zmkj.site/"
7
  width="100%"
8
  height="500"
9
  frameborder="0"
 
1
  import gradio as gr
2
+ import random
3
+
4
+ src_list = ['https://api.zmkj.site/', 'https://api1.zmkj.site/']
5
 
6
  with gr.Blocks() as demo:
7
+ gr.HTML(f"""
8
  <iframe
9
+ src="{random.choice(src_list)}"
10
  width="100%"
11
  height="500"
12
  frameborder="0"