kaveh commited on
Commit
84f4414
1 Parent(s): 7de86a5

set default of results to 10

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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", 5],
78
- ["Chest X-ray photos", "PubMedCLIP", 5],
79
- ["Orthopantogram (OPG)", "RCLIP",5],
80
- ["Brain MRI", "RCLIP",5],
81
- ["Ultrasound", "RCLIP",5],
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=5, step=1.0, show_label=True, scale=1)
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"):