Spaces:
Sleeping
Sleeping
Bill Psomas
commited on
Commit
·
a97fe78
1
Parent(s):
bdefe5d
fix gradio
Browse files
app.py
CHANGED
@@ -52,11 +52,11 @@ def demo(image, text, lambda_val):
|
|
52 |
iface = gr.Interface(
|
53 |
fn=demo,
|
54 |
inputs=[
|
55 |
-
gr.
|
56 |
-
gr.
|
57 |
-
gr.
|
58 |
],
|
59 |
-
outputs=
|
60 |
title="Composed Image Retrieval for Remote Sensing",
|
61 |
description="Upload a query image, enter a text query, and adjust the lambda value to retrieve images based on both image and text inputs."
|
62 |
)
|
|
|
52 |
iface = gr.Interface(
|
53 |
fn=demo,
|
54 |
inputs=[
|
55 |
+
gr.Image(type="pil", label="Query Image"),
|
56 |
+
gr.Textbox(lines=2, placeholder="Enter text query...", label="Text Query"),
|
57 |
+
gr.Slider(minimum=0, maximum=1, default=0.5, label="Lambda Value (Image-Text Weight)")
|
58 |
],
|
59 |
+
outputs=gr.Gallery(label="Retrieved Images"),
|
60 |
title="Composed Image Retrieval for Remote Sensing",
|
61 |
description="Upload a query image, enter a text query, and adjust the lambda value to retrieve images based on both image and text inputs."
|
62 |
)
|