Spaces:
Running
Running
Commit
•
7f59ad6
1
Parent(s):
2d5f0c1
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
import
|
2 |
|
3 |
-
def
|
4 |
-
|
5 |
-
return
|
6 |
|
7 |
import gradio as gr
|
8 |
|
9 |
-
gr.Interface(fn=
|
|
|
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()
|