Spaces:
Build error
Build error
Hussain Shaikh
commited on
Commit
·
0bd0ee9
1
Parent(s):
5e604f8
initial comit
Browse files
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
|
4 |
+
def image_mod(image):
|
5 |
+
return image.rotate(45)
|
6 |
+
|
7 |
+
|
8 |
+
iface = gr.Interface(image_mod, gr.inputs.Image(type="pil"), "image")
|
9 |
+
iface.launch()
|
10 |
+
|
11 |
+
|
12 |
+
# gr.Interface(inference, gr.inputs.Image(type="pil"), gr.outputs.Image(type="pil"),title=title,description=description,article=article,examples=examples,allow_flagging=False,allow_screenshot=False).launch(enable_queue=True,cache_examples=True)
|