Update app.py
Browse files
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]),
|
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 |
-
|
127 |
-
|
128 |
-
|
|
|
|
|
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])
|