LSTMGAN / app.py
MahdiKamyabi's picture
Create Sobel Edge
0dfa124
raw
history blame
No virus
481 Bytes
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()