Spestly commited on
Commit
c5f4968
·
verified ·
1 Parent(s): c3f37d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -11
app.py CHANGED
@@ -1,16 +1,17 @@
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;
@@ -29,10 +30,11 @@ with gr.Blocks(css="""
29
  )
30
 
31
  with gr.Row():
32
- gr.HTML(html_content)
 
33
 
34
  with gr.Row():
35
  gr.HTML('<div class="spacer"></div>')
36
 
37
 
38
- app.launch()
 
1
  import gradio as gr
2
 
3
+
4
+ iframe_url = "https://r3gm-diffusecraft.hf.space"
5
+ iframe_html = f"""
6
+ <iframe
7
+ frameborder="0"
8
+ width="100%"
9
+ height="600px"
10
+ style="border: none; margin: auto; border-radius: 15px;"
11
+ ></iframe>
12
  """
13
 
14
+
15
  with gr.Blocks(css="""
16
  .centered-title {
17
  text-align: center;
 
30
  )
31
 
32
  with gr.Row():
33
+ gr.HTML(iframe_html)
34
+
35
 
36
  with gr.Row():
37
  gr.HTML('<div class="spacer"></div>')
38
 
39
 
40
+ app.launch()