Spaces:
Runtime error
Runtime error
Marvin M. Agüero-Torales
commited on
Commit
·
84136a1
1
Parent(s):
1726035
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def hash_func(inp):
|
|
16 |
|
17 |
@st.cache(allow_output_mutation=True, suppress_st_warning=True)
|
18 |
def loading_models(model='roberta-base'):
|
19 |
-
return get_model(model), SentenceTransformer('all-MiniLM-L6-v2')
|
20 |
|
21 |
@st.cache(allow_output_mutation=True,
|
22 |
suppress_st_warning=True,
|
@@ -74,7 +74,7 @@ The next token is predicted per probability and a weight if it is appeared in ke
|
|
74 |
semantic_text = st.text_input("Enter users's history <Semantic> (optional, i.e., 'Microsoft' or 'President')", value="Microsoft")
|
75 |
|
76 |
text = st.text_input("Enter a text for auto completion...", value='Where is Bill')
|
77 |
-
model = st.selectbox("Choose a model", ["
|
78 |
|
79 |
data_load_state = st.text('1.Loading model ...')
|
80 |
|
|
|
16 |
|
17 |
@st.cache(allow_output_mutation=True, suppress_st_warning=True)
|
18 |
def loading_models(model='roberta-base'):
|
19 |
+
return get_model(model), SentenceTransformer('stsb-xlm-r-multilingual')#'all-MiniLM-L6-v2')
|
20 |
|
21 |
@st.cache(allow_output_mutation=True,
|
22 |
suppress_st_warning=True,
|
|
|
74 |
semantic_text = st.text_input("Enter users's history <Semantic> (optional, i.e., 'Microsoft' or 'President')", value="Microsoft")
|
75 |
|
76 |
text = st.text_input("Enter a text for auto completion...", value='Where is Bill')
|
77 |
+
model = st.selectbox("Choose a model", ["mmaguero/gn-bert-tiny-cased", "mmaguero/gn-bert-small-cased", "mmaguero/gn-bert-base-cased", "mmaguero/gn-bert-large-cased", "mmaguero/multilingual-bert-gn-base-cased", "mmaguero/beto-gn-base-cased"])
|
78 |
|
79 |
data_load_state = st.text('1.Loading model ...')
|
80 |
|