Spaces:
Sleeping
Sleeping
Brice Vandeputte
commited on
Commit
•
7c32702
1
Parent(s):
ad123c8
api result box
Browse files
app.py
CHANGED
@@ -236,6 +236,12 @@ if __name__ == "__main__":
|
|
236 |
value=None,
|
237 |
)
|
238 |
# open_domain_flag_btn = gr.Button("Flag Mistake", variant="primary")
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
|
240 |
with gr.Row():
|
241 |
gr.Examples(
|
@@ -313,7 +319,7 @@ if __name__ == "__main__":
|
|
313 |
api_classification_btn.click(
|
314 |
fn=api_classification,
|
315 |
inputs=[img_input, rank_dropdown],
|
316 |
-
outputs=[
|
317 |
)
|
318 |
|
319 |
zero_shot_btn.click(
|
|
|
236 |
value=None,
|
237 |
)
|
238 |
# open_domain_flag_btn = gr.Button("Flag Mistake", variant="primary")
|
239 |
+
api_classification_output = gr.Label(
|
240 |
+
num_top_classes=k,
|
241 |
+
label="API Output",
|
242 |
+
show_label=True,
|
243 |
+
value=None,
|
244 |
+
)
|
245 |
|
246 |
with gr.Row():
|
247 |
gr.Examples(
|
|
|
319 |
api_classification_btn.click(
|
320 |
fn=api_classification,
|
321 |
inputs=[img_input, rank_dropdown],
|
322 |
+
outputs=[api_classification_output],
|
323 |
)
|
324 |
|
325 |
zero_shot_btn.click(
|