Spaces:
Runtime error
Runtime error
John Smith
commited on
Commit
·
7369b9c
1
Parent(s):
8d9f6f1
Update app.py
Browse files
app.py
CHANGED
@@ -3,19 +3,15 @@ import os
|
|
3 |
|
4 |
|
5 |
def image_mod(image):
|
6 |
-
return image
|
7 |
|
8 |
|
9 |
-
|
10 |
-
image_mod,
|
11 |
-
gr.Image(type="pil"),
|
12 |
-
"image",
|
13 |
-
flagging_options=["blurry", "incorrect", "other"],
|
14 |
-
examples=[
|
15 |
-
os.path.join(os.path.dirname(__file__), "n146OugAwBUjFACpuWrZUE6Q0-M.jpg"),
|
16 |
|
17 |
-
|
18 |
-
|
|
|
|
|
19 |
|
20 |
if __name__ == "__main__":
|
21 |
demo.launch()
|
|
|
3 |
|
4 |
|
5 |
def image_mod(image):
|
6 |
+
return image.rotate(45)
|
7 |
|
8 |
|
9 |
+
cheetah = os.path.join(os.path.dirname(__file__), "n146OugAwBUjFACpuWrZUE6Q0-M.jpg")
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
+
demo = gr.Interface(image_mod, gr.Image(type="pil", value=cheetah), "image",
|
12 |
+
flagging_options=["blurry", "incorrect", "other"], examples=[
|
13 |
+
os.path.join(os.path.dirname(__file__), "n146OugAwBUjFACpuWrZUE6Q0-M.jpg
|
14 |
+
"),
|
15 |
|
16 |
if __name__ == "__main__":
|
17 |
demo.launch()
|