Spaces:
Running
Running
set default of results to 10
Browse files
app.py
CHANGED
@@ -74,11 +74,11 @@ def main(query, model_id="RCLIP", k=2):
|
|
74 |
|
75 |
# Define the Gradio interface
|
76 |
examples = [
|
77 |
-
["Chest X-ray photos", "RCLIP",
|
78 |
-
["Chest X-ray photos", "PubMedCLIP",
|
79 |
-
["Orthopantogram (OPG)", "RCLIP",
|
80 |
-
["Brain MRI", "RCLIP",
|
81 |
-
["Ultrasound", "RCLIP",
|
82 |
]
|
83 |
|
84 |
title="RCLIP Image Retrieval"
|
@@ -97,7 +97,7 @@ with gr.Blocks(title=title) as demo:
|
|
97 |
|
98 |
with gr.Row(variant="compact"):
|
99 |
model_id = gr.Dropdown(["RCLIP", "PubMedCLIP"], value="RCLIP", label="Model", type="value", scale=1)
|
100 |
-
n_s = gr.Slider(2, 10, label='Number of Top Results', value=
|
101 |
|
102 |
|
103 |
with gr.Column(variant="compact"):
|
|
|
74 |
|
75 |
# Define the Gradio interface
|
76 |
examples = [
|
77 |
+
["Chest X-ray photos", "RCLIP", 10],
|
78 |
+
["Chest X-ray photos", "PubMedCLIP", 10],
|
79 |
+
["Orthopantogram (OPG)", "RCLIP", 10],
|
80 |
+
["Brain MRI", "RCLIP", 10],
|
81 |
+
["Ultrasound", "RCLIP", 10],
|
82 |
]
|
83 |
|
84 |
title="RCLIP Image Retrieval"
|
|
|
97 |
|
98 |
with gr.Row(variant="compact"):
|
99 |
model_id = gr.Dropdown(["RCLIP", "PubMedCLIP"], value="RCLIP", label="Model", type="value", scale=1)
|
100 |
+
n_s = gr.Slider(2, 10, label='Number of Top Results', value=10, step=1.0, show_label=True, scale=1)
|
101 |
|
102 |
|
103 |
with gr.Column(variant="compact"):
|