Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -81,18 +81,18 @@ def check_membership(uploaded_image):
|
|
| 81 |
|
| 82 |
def app():
|
| 83 |
with gr.Blocks():
|
| 84 |
-
# with gr.Row():
|
| 85 |
with gr.Row():
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
|
|
|
| 96 |
#[gr.Textbox(label="greeting", lines=1)], gr.Image(image_mode="RGB")
|
| 97 |
gradio_app = gr.Blocks()
|
| 98 |
|
|
|
|
| 81 |
|
| 82 |
def app():
|
| 83 |
with gr.Blocks():
|
|
|
|
| 84 |
with gr.Row():
|
| 85 |
+
with gr.Column():
|
| 86 |
+
image = gr.Image(type="pil", label="Image")
|
| 87 |
+
siamese_infer = gr.Button(value="Search the image")
|
| 88 |
+
|
| 89 |
+
with gr.Column():
|
| 90 |
+
output_image = gr.Textbox( label="Resulted Search", lines=1)
|
| 91 |
+
siamese_infer.click(
|
| 92 |
+
fn=check_membership,
|
| 93 |
+
inputs=image,
|
| 94 |
+
outputs=output_image
|
| 95 |
+
)
|
| 96 |
#[gr.Textbox(label="greeting", lines=1)], gr.Image(image_mode="RGB")
|
| 97 |
gradio_app = gr.Blocks()
|
| 98 |
|