Marvin M. Agüero-Torales commited on
Commit
74fa41c
·
1 Parent(s): 84136a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -67,13 +67,14 @@ if __name__ == '__main__':
67
  st.markdown("""
68
  # Auto-Complete
69
  This is an example of an auto-complete approach where the next token suggested based on users's history Keyword match & Semantic similarity of users's history (log).
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
  """)
72
- history_keyword_text = st.text_input("Enter users's history <Keywords Match> (optional, i.e., 'Gates')", value="")
73
 
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 ...')
 
67
  st.markdown("""
68
  # Auto-Complete
69
  This is an example of an auto-complete approach where the next token suggested based on users's history Keyword match & Semantic similarity of users's history (log).
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., 'Paraguái')", value="")
74
 
75
+ semantic_text = st.text_input("Enter users's history <Semantic> (optional, i.e., 'Premio Cervantes')", value="Premio Cervantes")
76
 
77
+ text = st.text_input("Enter a text for auto completion...", value='Augusto Roa Bastos ha’e kuimba’e aranduoñemomba’eguasúva')
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 ...')