Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -138,7 +138,8 @@ with gr.Blocks() as interface:
|
|
138 |
|
139 |
with gr.Accordion("Output SVG File"):
|
140 |
out_file = gr.File()
|
141 |
-
|
|
|
142 |
|
143 |
|
144 |
# Convert
|
@@ -160,7 +161,7 @@ with gr.Blocks() as interface:
|
|
160 |
max_iterations,
|
161 |
splice_threshold,
|
162 |
path_precision],
|
163 |
-
[out_file])
|
164 |
|
165 |
|
166 |
interface.launch()
|
|
|
138 |
|
139 |
with gr.Accordion("Output SVG File"):
|
140 |
out_file = gr.File()
|
141 |
+
out_html = gr.HTML()
|
142 |
+
out_file.change((lambda x: f'<img src="file/{x}">'),out_file,out_html)
|
143 |
|
144 |
|
145 |
# Convert
|
|
|
161 |
max_iterations,
|
162 |
splice_threshold,
|
163 |
path_precision],
|
164 |
+
[out_file])
|
165 |
|
166 |
|
167 |
interface.launch()
|