Update app.py
Browse files
app.py
CHANGED
|
@@ -24,14 +24,14 @@ def svg_to_html(svg_file):
|
|
| 24 |
# Define the Gradio interface
|
| 25 |
iface = gr.Interface(
|
| 26 |
fn=svg_to_html,
|
| 27 |
-
inputs=gr.
|
| 28 |
outputs=[
|
| 29 |
-
gr.
|
| 30 |
-
gr.
|
| 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/
|
| 35 |
)
|
| 36 |
|
| 37 |
# Launch the interface
|
|
|
|
| 24 |
# Define the Gradio interface
|
| 25 |
iface = gr.Interface(
|
| 26 |
fn=svg_to_html,
|
| 27 |
+
inputs=gr.File(label="Upload SVG File"),
|
| 28 |
outputs=[
|
| 29 |
+
gr.Textbox(lines=15, label="Generated HTML"),
|
| 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
|