John Smith commited on
Commit
2347bce
·
1 Parent(s): 7369b9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -6,13 +6,16 @@ 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()
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()