Spaces:
Build error
Build error
update gradio version
Browse files- app.py +3 -3
- 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,
|
191 |
|
192 |
|
193 |
iface = gr.Interface(sepia,
|
194 |
gr.inputs.Image(),
|
195 |
-
["image", "
|
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(
|
|
|
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
|