Spaces:
Runtime error
Runtime error
Added application file
Browse files
app.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import numpy as np
|
2 |
+
import gradio as gr
|
3 |
+
|
4 |
+
def image_mod(image):
|
5 |
+
return image.rotate(45)
|
6 |
+
|
7 |
+
inp = gr.inputs.Image(label="Input Image", type="pil")
|
8 |
+
out = gr.outputs.Image()
|
9 |
+
|
10 |
+
iface = gr.Interface(image_mod, inputs=inp, outputs=out, examples=[["imagenet_diego.png"]])
|
11 |
+
iface.launch()
|