Felguk commited on
Commit
4123042
·
verified ·
1 Parent(s): d3d4e69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -22,7 +22,7 @@ def svg_to_html(svg_file):
22
  return html_content, svg_code
23
 
24
  # Define the Gradio interface
25
- iface = gr.Interface(
26
  fn=svg_to_html,
27
  inputs=gr.File(label="Upload SVG File"),
28
  outputs=[
@@ -30,8 +30,7 @@ iface = gr.Interface(
30
  gr.HTML(label="SVG Preview")
31
  ],
32
  title="SVG to HTML Converter",
33
- description="Upload an SVG file to see the generated HTML code and a preview of the SVG",
34
- Theme=Nymbo/Nymbo_theme
35
  )
36
 
37
  # Launch the interface
 
22
  return html_content, svg_code
23
 
24
  # Define the Gradio interface
25
+ with gr.Blocks(Theme=Nymbo/Nymbo_theme) as demo:
26
  fn=svg_to_html,
27
  inputs=gr.File(label="Upload SVG File"),
28
  outputs=[
 
30
  gr.HTML(label="SVG Preview")
31
  ],
32
  title="SVG to HTML Converter",
33
+ description="Upload an SVG file to see the generated HTML code and a preview of the SVG."
 
34
  )
35
 
36
  # Launch the interface