fix examples
Browse files- app.py +10 -10
- files/bee_pred.jpg +0 -0
- files/bee_pred.png +0 -0
- files/bee_vis.jpg +0 -0
- files/bee_vis.png +0 -0
- files/cat_pred.jpg +0 -0
- files/cat_pred.png +0 -0
- files/cat_vis.jpg +0 -0
- files/cat_vis.png +0 -0
- files/swings_pred.jpg +0 -0
- files/swings_pred.png +0 -0
- files/swings_vis.jpg +0 -0
- files/swings_vis.png +0 -0
app.py
CHANGED
|
@@ -78,7 +78,7 @@ iface = gr.Interface(
|
|
| 78 |
visible=False,
|
| 79 |
),
|
| 80 |
gr.Image(
|
| 81 |
-
label="Predicted depth
|
| 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
|
| 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.
|
| 102 |
-
os.path.join(os.path.dirname(__file__), "files/bee_pred.
|
| 103 |
],
|
| 104 |
[
|
| 105 |
os.path.join(os.path.dirname(__file__), "files/cat.jpg"),
|
| 106 |
-
os.path.join(os.path.dirname(__file__), "files/cat_vis.
|
| 107 |
-
os.path.join(os.path.dirname(__file__), "files/cat_pred.
|
| 108 |
],
|
| 109 |
[
|
| 110 |
os.path.join(os.path.dirname(__file__), "files/swings.jpg"),
|
| 111 |
-
os.path.join(os.path.dirname(__file__), "files/swings_vis.
|
| 112 |
-
os.path.join(os.path.dirname(__file__), "files/swings_pred.
|
| 113 |
],
|
| 114 |
],
|
| 115 |
css="""
|
|
@@ -117,10 +117,10 @@ iface = gr.Interface(
|
|
| 117 |
aspect-ratio: 4/3;
|
| 118 |
}
|
| 119 |
.imgdownload {
|
| 120 |
-
height:
|
| 121 |
}
|
| 122 |
""",
|
| 123 |
-
cache_examples=
|
| 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)
|
|
|