Spaces:
Sleeping
Sleeping
Julián Tachella
commited on
Commit
·
744ad2f
1
Parent(s):
af9162a
test
Browse files
app.py
CHANGED
@@ -1,7 +1,21 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
-
def greet(name):
|
4 |
-
return "Hello " + name + "!!"
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
+
import os
|
3 |
|
|
|
|
|
4 |
|
5 |
+
def image_mod(image):
|
6 |
+
return image.rotate(45)
|
7 |
+
|
8 |
+
demo = gr.Interface(
|
9 |
+
image_mod,
|
10 |
+
gr.Image(type="pil"),
|
11 |
+
"input image",
|
12 |
+
flagging_options=["blurry", "incorrect", "other"],
|
13 |
+
examples=[
|
14 |
+
os.path.join(os.path.dirname(__file__), "images/cheetah1.jpg"),
|
15 |
+
os.path.join(os.path.dirname(__file__), "images/lion.jpg"),
|
16 |
+
os.path.join(os.path.dirname(__file__), "images/logo.png"),
|
17 |
+
os.path.join(os.path.dirname(__file__), "images/tower.jpg"),
|
18 |
+
],
|
19 |
+
)
|
20 |
+
|
21 |
+
demo.launch()
|