Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -39,6 +39,9 @@ with gr.Blocks() as demo:
|
|
39 |
with gr.Column():
|
40 |
output_label = gr.Label(num_top_classes=3, label="Top Predictions")
|
41 |
|
|
|
|
|
|
|
42 |
gr.Examples(
|
43 |
examples=[
|
44 |
["cat.jpg", "timm/mobilenetv3_small_100.lamb_in1k"],
|
@@ -46,8 +49,6 @@ with gr.Blocks() as demo:
|
|
46 |
],
|
47 |
inputs=[image_input, model_name_input]
|
48 |
)
|
49 |
-
submit_button = gr.Button("Classify")
|
50 |
-
submit_button.click(fn=classify, inputs=[image_input, model_name_input], outputs=output_label)
|
51 |
|
52 |
gr.Markdown(
|
53 |
"""
|
|
|
39 |
with gr.Column():
|
40 |
output_label = gr.Label(num_top_classes=3, label="Top Predictions")
|
41 |
|
42 |
+
submit_button = gr.Button("Classify")
|
43 |
+
submit_button.click(fn=classify, inputs=[image_input, model_name_input], outputs=output_label)
|
44 |
+
|
45 |
gr.Examples(
|
46 |
examples=[
|
47 |
["cat.jpg", "timm/mobilenetv3_small_100.lamb_in1k"],
|
|
|
49 |
],
|
50 |
inputs=[image_input, model_name_input]
|
51 |
)
|
|
|
|
|
52 |
|
53 |
gr.Markdown(
|
54 |
"""
|