added txt of image
Browse files- app.py +3 -3
- blank_image.png +0 -0
app.py
CHANGED
@@ -106,13 +106,13 @@ def sepia(input_img):
|
|
106 |
my_image = Image.open("blank_image.png")
|
107 |
image_editable = ImageDraw.Draw(my_image)
|
108 |
image_editable.text((400,400), "\n".join(aimg), (237, 230, 211))
|
109 |
-
return my_image
|
110 |
|
111 |
|
112 |
iface = gr.Interface(sepia,
|
113 |
gr.inputs.Image(shape=(200, 200)),
|
114 |
-
"image",
|
115 |
title = "ASCII Art",
|
116 |
-
description = "Convert an image to ASCII art based on ascii character density")
|
117 |
|
118 |
iface.launch()
|
|
|
106 |
my_image = Image.open("blank_image.png")
|
107 |
image_editable = ImageDraw.Draw(my_image)
|
108 |
image_editable.text((400,400), "\n".join(aimg), (237, 230, 211))
|
109 |
+
return [my_image, "\n".join(aimg)]
|
110 |
|
111 |
|
112 |
iface = gr.Interface(sepia,
|
113 |
gr.inputs.Image(shape=(200, 200)),
|
114 |
+
["image", "text"],
|
115 |
title = "ASCII Art",
|
116 |
+
description = "Convert an image to ASCII art based on ascii character density. Copy and paste the text to a notepad to see it correctly")
|
117 |
|
118 |
iface.launch()
|
blank_image.png
ADDED
![]() |