Sharathhebbar24
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import AutoTokenizer, AutoModel
|
|
4 |
from sentence_transformers import util
|
5 |
class SentenceSimiliarity():
|
6 |
|
7 |
-
def __init__(self, model_name,
|
8 |
self.sentence1 = sentence1
|
9 |
self.sentence2 = sentence2
|
10 |
self.model_name = model_name
|
@@ -70,11 +70,11 @@ class UI():
|
|
70 |
"distilbert-base-uncased",
|
71 |
"bert-base-uncased",
|
72 |
"sentence-transformers/all-MiniLM-L6-v2",
|
73 |
-
"sentence-transformers/all-mpnet-base-v2",
|
74 |
-
"intfloat/multilingual-e5-base",
|
75 |
-
"togethercomputer/m2-bert-80M-32k-retrieval",
|
76 |
-
"togethercomputer/m2-bert-80M-8k-retrieval",
|
77 |
-
"togethercomputer/m2-bert-80M-2k-retrieval",
|
78 |
]
|
79 |
model_name = st.sidebar.selectbox(
|
80 |
label="Select Your Models",
|
|
|
4 |
from sentence_transformers import util
|
5 |
class SentenceSimiliarity():
|
6 |
|
7 |
+
def __init__(self, model_name, sentence1, sentence2):
|
8 |
self.sentence1 = sentence1
|
9 |
self.sentence2 = sentence2
|
10 |
self.model_name = model_name
|
|
|
70 |
"distilbert-base-uncased",
|
71 |
"bert-base-uncased",
|
72 |
"sentence-transformers/all-MiniLM-L6-v2",
|
73 |
+
# "sentence-transformers/all-mpnet-base-v2",
|
74 |
+
# "intfloat/multilingual-e5-base",
|
75 |
+
# "togethercomputer/m2-bert-80M-32k-retrieval",
|
76 |
+
# "togethercomputer/m2-bert-80M-8k-retrieval",
|
77 |
+
# "togethercomputer/m2-bert-80M-2k-retrieval",
|
78 |
]
|
79 |
model_name = st.sidebar.selectbox(
|
80 |
label="Select Your Models",
|