Omartificial-Intelligence-Space commited on
Commit
bd7b1da
1 Parent(s): 060eb8e

update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def predict(mode, sentence1, sentence2=None, sentence3=None, sentence4=None, dim
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)
 
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.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)