Richtefee commited on
Commit
4ff0c31
1 Parent(s): af01601

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -136,15 +136,15 @@ with gr.Blocks() as interface:
136
  value = 8,
137
  interactive=True)
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
146
- print(colormode.value)
147
- convert_button = gr.Button("Convert")
148
  convert_button.click(png2svg,
149
  [
150
  png_file,
 
136
  value = 8,
137
  interactive=True)
138
 
139
+ # Convert
140
+ convert_button = gr.Button("Convert")
141
+
142
  with gr.Accordion("Output SVG File"):
143
  out_file = gr.File()
144
  out_html = gr.HTML()
145
+
146
+ # Event Bindings
147
+ out_file.change((lambda x: f'<img src="file/{x}">'),out_file,out_html)
 
 
 
148
  convert_button.click(png2svg,
149
  [
150
  png_file,