Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,13 +20,11 @@ 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 |
with gr.Column():
|
| 24 |
-
|
| 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 |
-
|
| 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")
|
|
|
|
| 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 |
+
item_id = gr.Textbox(label="Item ID")
|
| 24 |
with gr.Column():
|
| 25 |
+
use_title = gr.Checkbox(label="Use translated item title", value=True)
|
|
|
|
|
|
|
| 26 |
threshold = gr.Number(label="Threshold", value=0.25, precision=2)
|
| 27 |
+
submit = gr.Button("Submit")
|
|
|
|
| 28 |
gr.HTML("<hr>")
|
| 29 |
domain = gr.Markdown()
|
| 30 |
valid = gr.Gallery(label="Valid images").style(grid=[1, 2, 3], height="auto")
|