Spaces:
Sleeping
Sleeping
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -137,22 +137,13 @@ with gr.Blocks(title="Stop Sign Classifier") as demo:
|
|
| 137 |
)
|
| 138 |
|
| 139 |
gr.Examples(
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
["https://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Stop_sign_light_red.svg/640px-Stop_sign_light_red.svg.png"],
|
| 148 |
-
["https://upload.wikimedia.org/wikipedia/commons/thumb/1/12/No_parking_sign.png/480px-No_parking_sign.png"],
|
| 149 |
-
["https://upload.wikimedia.org/wikipedia/commons/thumb/4/4f/Stop_sign_in_the_United_States.jpg/640px-Stop_sign_in_the_United_States.jpg"],
|
| 150 |
-
],
|
| 151 |
-
inputs=[image_in],
|
| 152 |
-
label="Example images",
|
| 153 |
-
examples_per_page=6,
|
| 154 |
-
cache_examples=False,
|
| 155 |
-
)
|
| 156 |
|
| 157 |
if __name__ == "__main__":
|
| 158 |
demo.launch()
|
|
|
|
| 137 |
)
|
| 138 |
|
| 139 |
gr.Examples(
|
| 140 |
+
examples=[["examples/example_0.png"], ["examples/example_11.png"], ["examples/example_23.png"]],
|
| 141 |
+
inputs=[image_in],
|
| 142 |
+
label="Example images",
|
| 143 |
+
examples_per_page=6,
|
| 144 |
+
cache_examples=True,
|
| 145 |
+
)
|
| 146 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
|
| 148 |
if __name__ == "__main__":
|
| 149 |
demo.launch()
|