Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,6 +42,14 @@ with gr.Blocks() as demo:
|
|
| 42 |
with gr.Row():
|
| 43 |
clear_btn = gr.Button("Reset")
|
| 44 |
classify_btn = gr.Button("Mehet")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
|
| 47 |
with gr.Column():
|
|
@@ -50,16 +58,5 @@ with gr.Blocks() as demo:
|
|
| 50 |
classify_btn.click(predict_fn, inputs=input_image, outputs=output)
|
| 51 |
clear_btn.click(lambda: [None, None], inputs=None, outputs=[input_image, output])
|
| 52 |
|
| 53 |
-
# Adding example images
|
| 54 |
-
demo.add_examples([
|
| 55 |
-
"imgs/lion.jpg",
|
| 56 |
-
"imgs/car.jpg",
|
| 57 |
-
"imgs/cheetah.jpg",
|
| 58 |
-
"imgs/banana.jpg",
|
| 59 |
-
"imgs/bus.jpg",
|
| 60 |
-
"imgs/parfum.jpg",
|
| 61 |
-
"imgs/alligator.jpg",
|
| 62 |
-
"imgs/arc.jpg"
|
| 63 |
-
])
|
| 64 |
|
| 65 |
demo.launch()
|
|
|
|
| 42 |
with gr.Row():
|
| 43 |
clear_btn = gr.Button("Reset")
|
| 44 |
classify_btn = gr.Button("Mehet")
|
| 45 |
+
examples=["imgs/lion.jpg",
|
| 46 |
+
"imgs/car.jpg",
|
| 47 |
+
"imgs/cheetah.jpg",
|
| 48 |
+
"imgs/banana.jpg",
|
| 49 |
+
"imgs/bus.jpg",
|
| 50 |
+
"imgs/parfum.jpg",
|
| 51 |
+
"imgs/alligator.jpg",
|
| 52 |
+
"imgs/arc.jpg"]
|
| 53 |
|
| 54 |
|
| 55 |
with gr.Column():
|
|
|
|
| 58 |
classify_btn.click(predict_fn, inputs=input_image, outputs=output)
|
| 59 |
clear_btn.click(lambda: [None, None], inputs=None, outputs=[input_image, output])
|
| 60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
demo.launch()
|