Dabs commited on
Commit
b68b88e
·
1 Parent(s): 33e5333

description

Browse files
Files changed (1) hide show
  1. app.py +5 -8
app.py CHANGED
@@ -98,13 +98,6 @@ def covertImageToAscii(input_img, cols, scale, moreLevels):
98
  return aimg
99
 
100
 
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
  def sepia(input_img):
109
  aimg = covertImageToAscii(input_img, 200, 0.43, False)
110
  blank_image = Image.new(mode="RGB", size=(2000, 2000))
@@ -116,6 +109,10 @@ def sepia(input_img):
116
  return my_image
117
 
118
 
119
- iface = gr.Interface(sepia, gr.inputs.Image(shape=(200, 200)), "image")
 
 
 
 
120
 
121
  iface.launch()
 
98
  return aimg
99
 
100
 
 
 
 
 
 
 
 
101
  def sepia(input_img):
102
  aimg = covertImageToAscii(input_img, 200, 0.43, False)
103
  blank_image = Image.new(mode="RGB", size=(2000, 2000))
 
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()