Commit
060eb8e
1 Parent(s): 954807c

update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,8 +33,8 @@ def predict(mode, sentence1, sentence2=None, sentence3=None, sentence4=None, dim
33
  return similarity_scores
34
 
35
  # Define inputs and outputs for Gradio interface
36
- mode_dropdown = gr.Dropdown(choices=["Compare two sentences", "Compare one to three"], label="Mode", default="Compare two sentences")
37
- dimension_dropdown = gr.inputs.Dropdown(choices=["768", "512", "256", "128", "64"], label="Embedding Dimension", default="64")
38
  sentence1_input = gr.Textbox(lines=2, placeholder="Enter the first sentence here...", label="Sentence 1")
39
  sentence2_input = gr.Textbox(lines=2, placeholder="Enter the second sentence here...", label="Sentence 2 (or first of three for mode)", optional=True)
40
  sentence3_input = gr.Textbox(lines=2, placeholder="Enter the third sentence here...", label="Sentence 3", optional=True)
 
33
  return similarity_scores
34
 
35
  # Define inputs and outputs for Gradio interface
36
+ mode_dropdown = gr.Dropdown(choices=["Compare two sentences", "Compare one to three"], label="Mode")
37
+ dimension_dropdown = gr.inputs.Dropdown(choices=["768", "512", "256", "128", "64"], label="Embedding Dimension")
38
  sentence1_input = gr.Textbox(lines=2, placeholder="Enter the first sentence here...", label="Sentence 1")
39
  sentence2_input = gr.Textbox(lines=2, placeholder="Enter the second sentence here...", label="Sentence 2 (or first of three for mode)", optional=True)
40
  sentence3_input = gr.Textbox(lines=2, placeholder="Enter the third sentence here...", label="Sentence 3", optional=True)