Spaces:
Runtime error
Runtime error
Yahia battach
commited on
Commit
·
7272ff8
1
Parent(s):
491333e
edit app.py
Browse files
app.py
CHANGED
|
@@ -310,11 +310,11 @@ if __name__ == "__main__":
|
|
| 310 |
fn=change_output, inputs=rank_dropdown, outputs=[open_domain_output]
|
| 311 |
)
|
| 312 |
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
|
| 319 |
zero_shot_btn.click(
|
| 320 |
fn=zero_shot_classification,
|
|
|
|
| 310 |
fn=change_output, inputs=rank_dropdown, outputs=[open_domain_output]
|
| 311 |
)
|
| 312 |
|
| 313 |
+
open_domain_btn.click(
|
| 314 |
+
fn=lambda img, rank: open_domain_classification(img, rank, return_all=True),
|
| 315 |
+
inputs=[img_input, rank_dropdown],
|
| 316 |
+
outputs=[open_domain_output],
|
| 317 |
+
)
|
| 318 |
|
| 319 |
zero_shot_btn.click(
|
| 320 |
fn=zero_shot_classification,
|