Spaces:
Runtime error
Runtime error
Marvin M. Agüero-Torales
commited on
Commit
·
fa4b438
1
Parent(s):
7fa4e7e
Update app.py
Browse files
app.py
CHANGED
@@ -70,12 +70,12 @@ This is an example of an auto-complete approach where the next token suggested b
|
|
70 |
The next token is predicted per probability and a weight if it is appeared in keyword user's history or there is a similarity to semantic user's history.
|
71 |
**Forked from [mbahrami/Auto-Complete_Semantic](https://huggingface.co/spaces/mbahrami/Auto-Complete_Semantic).**
|
72 |
""")
|
73 |
-
history_keyword_text = st.text_input("Enter users's history <Keywords Match> (optional, i.e., '
|
74 |
|
75 |
-
semantic_text = st.text_input("Enter users's history <Semantic> (optional, i.e., '
|
76 |
|
77 |
-
text = st.text_input("Enter a text for auto completion...", value=
|
78 |
-
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"])
|
79 |
|
80 |
data_load_state = st.text('1.Loading model ...')
|
81 |
|
|
|
70 |
The next token is predicted per probability and a weight if it is appeared in keyword user's history or there is a similarity to semantic user's history.
|
71 |
**Forked from [mbahrami/Auto-Complete_Semantic](https://huggingface.co/spaces/mbahrami/Auto-Complete_Semantic).**
|
72 |
""")
|
73 |
+
history_keyword_text = st.text_input("Enter users's history <Keywords Match> (optional, i.e., 'Premio Cervantes')", value="")
|
74 |
|
75 |
+
semantic_text = st.text_input("Enter users's history <Semantic> (optional, i.e., 'hai')", value="hai")
|
76 |
|
77 |
+
text = st.text_input("Enter a text for auto completion...", value="Augusto Roa Bastos ha'e kuimba'e arandu")
|
78 |
+
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", "bert-base-multilingual-cased", "https://huggingface.co/dccuchile/bert-base-spanish-wwm-cased"])
|
79 |
|
80 |
data_load_state = st.text('1.Loading model ...')
|
81 |
|