Spaces:
Sleeping
Sleeping
File size: 481 Bytes
ad50614 0dfa124 ad50614 0dfa124 ad50614 0dfa124 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import gradio as gr
from skimage import filters
def sobel_edge(image):
edge_sobel = filters.sobel(image)
return edge_sobel
def sentence_builder(quantity, animal, place, activity_list, morning):
return f"""The {quantity} {animal}s went to the {place} where they {" and ".join(activity_list)} until the {"morning" if morning else "night"}"""
gr.Interface(fn=sobel_edge, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.inputs.Image(shape=(512, 512))).launch() |