Spestly commited on
Commit
6b20200
·
verified ·
1 Parent(s): a55892f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -14
app.py CHANGED
@@ -1,18 +1,16 @@
1
  import gradio as gr
2
 
3
-
4
- iframe_url = "https://john6666-votepurchase-multiple-model.hf.space"
5
- iframe_html = f"""
6
- <iframe
7
- src="{iframe_url}"
8
- frameborder="0"
9
- width="100%"
10
- height="600px"
11
- style="border: none; margin: auto; border-radius: 15px;"
12
- ></iframe>
13
  """
14
 
15
-
16
  with gr.Blocks(css="""
17
  .centered-title {
18
  text-align: center;
@@ -26,13 +24,12 @@ with gr.Blocks(css="""
26
  """) as app:
27
  with gr.Row():
28
  gr.Markdown(
29
- "### OdysseyXL-3.0 - Powered By [DiffuseCraft](https://r3gm-diffusecraft.hf.space)",
30
  elem_classes="centered-title"
31
  )
32
 
33
  with gr.Row():
34
- gr.HTML(iframe_html)
35
-
36
 
37
  with gr.Row():
38
  gr.HTML('<div class="spacer"></div>')
 
1
  import gradio as gr
2
 
3
+ html_content = """
4
+ <script
5
+ type="module"
6
+ src="https://gradio.s3-us-west-2.amazonaws.com/4.31.3/gradio.js"
7
+ ></script>
8
+ <gradio-app
9
+ src="https://r3gm-diffusecraft.hf.space"
10
+ style="width: 100%; height: 600px; border-radius: 15px; margin: auto;">
11
+ </gradio-app>
 
12
  """
13
 
 
14
  with gr.Blocks(css="""
15
  .centered-title {
16
  text-align: center;
 
24
  """) as app:
25
  with gr.Row():
26
  gr.Markdown(
27
+ "### OdysseyXL-4.0 - Powered By [DiffuseCraft](https://r3gm-diffusecraft.hf.space)",
28
  elem_classes="centered-title"
29
  )
30
 
31
  with gr.Row():
32
+ gr.HTML(html_content)
 
33
 
34
  with gr.Row():
35
  gr.HTML('<div class="spacer"></div>')