nickmuchi commited on
Commit
97a0bcb
·
1 Parent(s): b6842b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -81,7 +81,7 @@ def set_example_image(example: list) -> dict:
81
  return gr.Image.update(value=example[0])
82
 
83
  def set_example_url(example: list) -> dict:
84
- return gr.Textbox.update(value=example[0]), display_url_input.update(image)
85
 
86
 
87
  title = """<h1 id="title">Face Mask Detection with YOLOS</h1>"""
@@ -123,9 +123,11 @@ with demo:
123
  with gr.Tabs():
124
  with gr.TabItem('Image URL'):
125
  with gr.Row():
126
- url_input = gr.Textbox(lines=2,label='Enter valid image URL here..')
127
- orig_image = gr.Image(shape=(750,750))
128
- img_output_from_url = gr.Image(shape=(750,750))
 
 
129
 
130
  with gr.Row():
131
  example_url = gr.Dataset(components=[url_input],samples=[[str(url)] for url in urls])
 
81
  return gr.Image.update(value=example[0])
82
 
83
  def set_example_url(example: list) -> dict:
84
+ return gr.Textbox.update(value=example[0]), original_image.update(orig_image)
85
 
86
 
87
  title = """<h1 id="title">Face Mask Detection with YOLOS</h1>"""
 
123
  with gr.Tabs():
124
  with gr.TabItem('Image URL'):
125
  with gr.Row():
126
+ with gr.Column():
127
+ url_input = gr.Textbox(lines=2,label='Enter valid image URL here..')
128
+ original_image = gr.Image(shape=(750,750))
129
+ with gr.Column():
130
+ img_output_from_url = gr.Image(shape=(750,750))
131
 
132
  with gr.Row():
133
  example_url = gr.Dataset(components=[url_input],samples=[[str(url)] for url in urls])