Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
from filters import as_gray
|
4 |
+
|
5 |
+
def process(input_image):
|
6 |
+
output_image = as_gray(input_image)
|
7 |
+
return output_image
|
8 |
+
|
9 |
+
demo = gr.Interface(
|
10 |
+
process,
|
11 |
+
"image",
|
12 |
+
"image",
|
13 |
+
examples=["lion.jpg", "logo.png"],
|
14 |
+
)
|
15 |
+
|
16 |
+
demo.launch()
|