jingwora commited on
Commit
f9b1ef2
1 Parent(s): dc5cd62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -24,15 +24,11 @@ tokenizer = AutoTokenizer.from_pretrained(checkpoint)
24
  model = AutoModel.from_pretrained(checkpoint)
25
 
26
  demo = gr.Blocks(theme="gradio/glass")
27
-
28
  with demo:
29
  gr.Markdown("# Sentence Similarity")
30
  gr.Markdown("### How to use:")
31
  gr.Markdown("- Enter Passage 1 and Passage 2, then press Submit")
32
  gr.Markdown("- Select an example, then press Submit")
33
- gr.Markdown(" ")
34
- gr.Markdown("Task: Sentence Similarity (Multilingual)")
35
- gr.Markdown("Model: https://huggingface.co/intfloat/multilingual-e5-large")
36
 
37
  p_txt1 = gr.Textbox(placeholder="Enter passage 1", label="Passage 1")
38
  p_txt2 = gr.Textbox(placeholder="Enter passage 2", label="Passage 2")
@@ -40,6 +36,9 @@ with demo:
40
  o_txt = gr.Textbox(placeholder="Similarity score", lines=1,
41
  interactive=False, label="Similarity score (0-1)")
42
 
 
 
 
43
  gr.Examples(
44
  [
45
  ["A big bus is running on the road in the city.", "There is a big bus running on the road."],
 
24
  model = AutoModel.from_pretrained(checkpoint)
25
 
26
  demo = gr.Blocks(theme="gradio/glass")
 
27
  with demo:
28
  gr.Markdown("# Sentence Similarity")
29
  gr.Markdown("### How to use:")
30
  gr.Markdown("- Enter Passage 1 and Passage 2, then press Submit")
31
  gr.Markdown("- Select an example, then press Submit")
 
 
 
32
 
33
  p_txt1 = gr.Textbox(placeholder="Enter passage 1", label="Passage 1")
34
  p_txt2 = gr.Textbox(placeholder="Enter passage 2", label="Passage 2")
 
36
  o_txt = gr.Textbox(placeholder="Similarity score", lines=1,
37
  interactive=False, label="Similarity score (0-1)")
38
 
39
+ gr.Markdown("Model: https://huggingface.co/intfloat/multilingual-e5-large")
40
+ gr.Markdown("Task: Sentence Similarity (Multilingual: 94 languages)")
41
+
42
  gr.Examples(
43
  [
44
  ["A big bus is running on the road in the city.", "There is a big bus running on the road."],