Spaces:
Sleeping
Sleeping
Commit
•
0dfa124
1
Parent(s):
9bd0d04
Create Sobel Edge
Browse files
app.py
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
3 |
|
|
|
|
|
|
|
|
|
4 |
def sentence_builder(quantity, animal, place, activity_list, morning):
|
5 |
return f"""The {quantity} {animal}s went to the {place} where they {" and ".join(activity_list)} until the {"morning" if morning else "night"}"""
|
6 |
|
7 |
-
gr.Interface(fn=
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
from skimage import filters
|
4 |
|
5 |
+
def sobel_edge(image):
|
6 |
+
|
7 |
+
edge_sobel = filters.sobel(image)
|
8 |
+
return edge_sobel
|
9 |
def sentence_builder(quantity, animal, place, activity_list, morning):
|
10 |
return f"""The {quantity} {animal}s went to the {place} where they {" and ".join(activity_list)} until the {"morning" if morning else "night"}"""
|
11 |
|
12 |
+
gr.Interface(fn=sobel_edge, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.inputs.Image(shape=(512, 512))).launch()
|