ysharma's picture
ysharma HF Staff
l
ce8f747
raw
history blame
304 Bytes
import gradio as gr
from PIL import Image
demo = gr.Blocks.load(name="spaces/freddyaboulton/blocks_inputs")
assert demo("Foo", "bar") == "Foo bar"
original = Image.open("./c1.jfif")
output_img_path = demo("./c2.jfif", fn_index=1)
output = Image.open(output_img_path)
assert original.size == output.size