toshas commited on
Commit
0f05329
1 Parent(s): a250ecf

fix examples

Browse files
app.py CHANGED
@@ -78,7 +78,7 @@ iface = gr.Interface(
78
  visible=False,
79
  ),
80
  gr.Image(
81
- label="Predicted depth (16-bit PNG)",
82
  type="filepath",
83
  visible=False,
84
  ),
@@ -89,7 +89,7 @@ iface = gr.Interface(
89
  type="pil",
90
  ),
91
  gr.Image(
92
- label="Predicted depth (16-bit PNG)",
93
  type="pil",
94
  elem_classes="imgdownload",
95
  ),
@@ -98,18 +98,18 @@ iface = gr.Interface(
98
  examples=[
99
  [
100
  os.path.join(os.path.dirname(__file__), "files/bee.jpg"),
101
- os.path.join(os.path.dirname(__file__), "files/bee_vis.png"),
102
- os.path.join(os.path.dirname(__file__), "files/bee_pred.png"),
103
  ],
104
  [
105
  os.path.join(os.path.dirname(__file__), "files/cat.jpg"),
106
- os.path.join(os.path.dirname(__file__), "files/cat_vis.png"),
107
- os.path.join(os.path.dirname(__file__), "files/cat_pred.png"),
108
  ],
109
  [
110
  os.path.join(os.path.dirname(__file__), "files/swings.jpg"),
111
- os.path.join(os.path.dirname(__file__), "files/swings_vis.png"),
112
- os.path.join(os.path.dirname(__file__), "files/swings_pred.png"),
113
  ],
114
  ],
115
  css="""
@@ -117,10 +117,10 @@ iface = gr.Interface(
117
  aspect-ratio: 4/3;
118
  }
119
  .imgdownload {
120
- height: 32px;
121
  }
122
  """,
123
- cache_examples=False,
124
  )
125
 
126
 
 
78
  visible=False,
79
  ),
80
  gr.Image(
81
+ label="Predicted depth",
82
  type="filepath",
83
  visible=False,
84
  ),
 
89
  type="pil",
90
  ),
91
  gr.Image(
92
+ label="Predicted depth",
93
  type="pil",
94
  elem_classes="imgdownload",
95
  ),
 
98
  examples=[
99
  [
100
  os.path.join(os.path.dirname(__file__), "files/bee.jpg"),
101
+ os.path.join(os.path.dirname(__file__), "files/bee_vis.jpg"),
102
+ os.path.join(os.path.dirname(__file__), "files/bee_pred.jpg"),
103
  ],
104
  [
105
  os.path.join(os.path.dirname(__file__), "files/cat.jpg"),
106
+ os.path.join(os.path.dirname(__file__), "files/cat_vis.jpg"),
107
+ os.path.join(os.path.dirname(__file__), "files/cat_pred.jpg"),
108
  ],
109
  [
110
  os.path.join(os.path.dirname(__file__), "files/swings.jpg"),
111
+ os.path.join(os.path.dirname(__file__), "files/swings_vis.jpg"),
112
+ os.path.join(os.path.dirname(__file__), "files/swings_pred.jpg"),
113
  ],
114
  ],
115
  css="""
 
117
  aspect-ratio: 4/3;
118
  }
119
  .imgdownload {
120
+ height: 64px;
121
  }
122
  """,
123
+ cache_examples=True,
124
  )
125
 
126
 
files/bee_pred.jpg ADDED
files/bee_pred.png DELETED
Binary file (506 kB)
 
files/bee_vis.jpg ADDED
files/bee_vis.png DELETED
Binary file (219 kB)
 
files/cat_pred.jpg ADDED
files/cat_pred.png DELETED
Binary file (555 kB)
 
files/cat_vis.jpg ADDED
files/cat_vis.png DELETED
Binary file (216 kB)
 
files/swings_pred.jpg ADDED
files/swings_pred.png DELETED
Binary file (535 kB)
 
files/swings_vis.jpg ADDED
files/swings_vis.png DELETED
Binary file (289 kB)