Spaces:
Runtime error
Runtime error
fix typo
Browse files
app.py
CHANGED
@@ -13,6 +13,6 @@ with gr.Blocks() as iface:
|
|
13 |
candidates = gr.Textbox(label="Candidates")
|
14 |
predictions = gr.Textbox(label="Predictions")
|
15 |
btn = gr.Button("Classify")
|
16 |
-
|
17 |
|
18 |
iface.launch()
|
|
|
13 |
candidates = gr.Textbox(label="Candidates")
|
14 |
predictions = gr.Textbox(label="Predictions")
|
15 |
btn = gr.Button("Classify")
|
16 |
+
btn.click(fn=classify, inputs=[image, candidates], outputs=predictions, api_name="classify")
|
17 |
|
18 |
iface.launch()
|