Spaces:
Runtime error
Runtime error
John Smith
commited on
Commit
·
2347bce
1
Parent(s):
7369b9c
Update app.py
Browse files
app.py
CHANGED
@@ -6,13 +6,16 @@ def image_mod(image):
|
|
6 |
return image.rotate(45)
|
7 |
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
os.path.join(os.path.dirname(__file__), "n146OugAwBUjFACpuWrZUE6Q0-M.jpg
|
14 |
-
"),
|
15 |
|
16 |
if __name__ == "__main__":
|
17 |
-
demo.launch()
|
18 |
-
|
|
|
6 |
return image.rotate(45)
|
7 |
|
8 |
|
9 |
+
demo = gr.Interface(
|
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()
|
|