Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,10 +20,13 @@ with gr.Blocks() as demo:
|
|
20 |
### 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.
|
21 |
Input an item ID or select one of the preloaded examples below.""")
|
22 |
with gr.Row():
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
|
|
|
|
27 |
gr.HTML("<hr>")
|
28 |
domain = gr.Markdown()
|
29 |
valid = gr.Gallery(label="Valid images").style(grid=[1, 2, 3], height="auto")
|
|
|
20 |
### 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.
|
21 |
Input an item ID or select one of the preloaded examples below.""")
|
22 |
with gr.Row():
|
23 |
+
with gr.Column():
|
24 |
+
item_id = gr.Textbox(label="Item ID")
|
25 |
+
with gr.Column():
|
26 |
+
use_title = gr.Checkbox(label="Use item title", value=True)
|
27 |
+
threshold = gr.Number(label="Threshold", value=0.25, precision=2)
|
28 |
+
with gr.Column():
|
29 |
+
submit = gr.Button("Submit")
|
30 |
gr.HTML("<hr>")
|
31 |
domain = gr.Markdown()
|
32 |
valid = gr.Gallery(label="Valid images").style(grid=[1, 2, 3], height="auto")
|