LinaJawadi commited on
Commit
7f59ad6
1 Parent(s): 2d5f0c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,9 +1,9 @@
1
- import Image as image
2
 
3
- def bw(image):
4
- image_bw = image.convert(1)
5
- return image_bw
6
 
7
  import gradio as gr
8
 
9
- gr.Interface(fn=bw, inputs="image", outputs="image").launch()
 
1
+ import PIL as image
2
 
3
+ def gray(image):
4
+ image_gray = image.convert('L')
5
+ return image_gray
6
 
7
  import gradio as gr
8
 
9
+ gr.Interface(fn=gray, inputs="image", outputs="image").launch()