Deniel Dimitrov commited on
Commit
7d8028a
·
1 Parent(s): 86cfa7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -30,13 +30,6 @@ def image_to_ascii(img):
30
  ascii_art = convert_to_ascii(image, text_size)
31
  return ascii_art
32
 
33
- iface = gr.Interface(
34
- fn=image_to_ascii,
35
- inputs=gr.inputs.Image(label="Upload Image"),
36
- outputs=gr.outputs.Textbox(label="ASCII Art"),
37
- title="Image to ASCII Art",
38
- description="Upload an image and convert it to ASCII art."
39
- )
40
-
41
  iface.launch()
42
 
 
30
  ascii_art = convert_to_ascii(image, text_size)
31
  return ascii_art
32
 
33
+ iface = gr.Interface(fn=image_to_ascii, inputs=["image", "number"], outputs="text", title="Image to ASCII")
 
 
 
 
 
 
 
34
  iface.launch()
35