Richtefee commited on
Commit
af01601
·
1 Parent(s): d03c61f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- # out_html = gr.HTML(f'<img src="{out_file}">')
 
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]) #,out_html])
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()