kritsg commited on
Commit
fa636b5
·
1 Parent(s): a5fc509

Added application file

Browse files
Files changed (1) hide show
  1. app.py +11 -0
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()