mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-15 02:11:15 +08:00
fix tests
This commit is contained in:
parent
792828349f
commit
325ca5175e
@ -7,14 +7,7 @@ def image_mod(image):
|
||||
return image.rotate(45)
|
||||
|
||||
|
||||
iface = gr.Interface(image_mod,
|
||||
gr.inputs.Image(type="pil", optional=True),
|
||||
"image",
|
||||
examples=[
|
||||
["images/cheetah1.jpg"],
|
||||
["images/cheetah2.jpg"],
|
||||
["images/lion.jpg"],
|
||||
], live=True)
|
||||
iface = gr.Interface(image_mod, gr.inputs.Image(type="pil", optional=True), "image")
|
||||
|
||||
if __name__ == "__main__":
|
||||
iface.launch()
|
||||
|
Loading…
Reference in New Issue
Block a user