rxavier commited on
Commit
2319997
1 Parent(s): 4f70792

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
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
- item_id = gr.Textbox(label="Item ID")
24
- use_title = gr.Checkbox(label="Use item title", value=True)
25
- threshold = gr.Number(label="Threshold", value=0.25, precision=2)
26
- submit = gr.Button("Submit")
 
 
 
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")