HighCWu commited on
Commit
80b34f1
·
1 Parent(s): baff8b7

update gradio version

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. requirements.txt +1 -1
app.py CHANGED
@@ -187,13 +187,13 @@ def sepia(input_img):
187
  with open("result.svg", "w") as f:
188
  f.write(my_html)
189
 
190
- return [my_image, my_html, "result.svg"]
191
 
192
 
193
  iface = gr.Interface(sepia,
194
  gr.inputs.Image(),
195
- ["image", "html", "file"],
196
  title = "Colorful ASCII Art",
197
  description = "Convert an image to colorful ASCII art based on ascii character density. Copy and paste the text to a notepad to see it correctly")
198
 
199
- iface.launch(enable_queue=True)
 
187
  with open("result.svg", "w") as f:
188
  f.write(my_html)
189
 
190
+ return [my_image, "result.svg", my_html]
191
 
192
 
193
  iface = gr.Interface(sepia,
194
  gr.inputs.Image(),
195
+ ["image", "file", "html"],
196
  title = "Colorful ASCII Art",
197
  description = "Convert an image to colorful ASCII art based on ascii character density. Copy and paste the text to a notepad to see it correctly")
198
 
199
+ iface.launch()
requirements.txt CHANGED
@@ -1,2 +1,2 @@
1
  Pillow
2
- gradio
 
1
  Pillow
2
+ gradio==2.9b23