mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
b4d9825409
Ported gradio website into gradio repository, now launched as a docker service from gradio/website
9 lines
188 B
Python
9 lines
188 B
Python
import gradio as gr
|
|
|
|
def image_mod(image):
|
|
return image.rotate(45)
|
|
|
|
iface = gr.Interface(image_mod, gr.inputs.Image(type="pil"), "image")
|
|
if __name__ == "__main__":
|
|
iface.launch()
|