Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ with gr.Blocks() as demo:
|
|
16 |
### This app takes an item ID and classifies its pictures as valid/invalid depending on whether they relate to the domain in which it's been listed.
|
17 |
Input an item ID or select one of the preloaded examples below.""")
|
18 |
item_id = gr.Textbox(label="Item ID")
|
19 |
-
threshold = gr.Number(label="Threshold", value=0.25)
|
20 |
submit = gr.Button("Submit")
|
21 |
gr.HTML("<hr>")
|
22 |
domain = gr.Markdown()
|
@@ -26,7 +26,8 @@ with gr.Blocks() as demo:
|
|
26 |
submit.click(inputs=[item_id, threshold], outputs=[domain, valid, invalid], fn=validate)
|
27 |
gr.HTML("<hr>")
|
28 |
gr.Examples(
|
29 |
-
examples=[["
|
|
|
30 |
inputs=[item_id, threshold],
|
31 |
outputs=[domain, valid, invalid],
|
32 |
fn=validate,
|
|
|
16 |
### This app takes an item ID and classifies its pictures as valid/invalid depending on whether they relate to the domain in which it's been listed.
|
17 |
Input an item ID or select one of the preloaded examples below.""")
|
18 |
item_id = gr.Textbox(label="Item ID")
|
19 |
+
threshold = gr.Number(label="Threshold", value=0.25, precision=2)
|
20 |
submit = gr.Button("Submit")
|
21 |
gr.HTML("<hr>")
|
22 |
domain = gr.Markdown()
|
|
|
26 |
submit.click(inputs=[item_id, threshold], outputs=[domain, valid, invalid], fn=validate)
|
27 |
gr.HTML("<hr>")
|
28 |
gr.Examples(
|
29 |
+
examples=[["MLC572974424", 0.25], ["MLU449951849", 0.25], ["MLA1293465558", 0.25],
|
30 |
+
["MLB3184663685", 0.25], ["MLC1392230619", 0.25], ["MCO546152796", 0.25]],
|
31 |
inputs=[item_id, threshold],
|
32 |
outputs=[domain, valid, invalid],
|
33 |
fn=validate,
|