UnarineLeo commited on
Commit
d7f8dc2
1 Parent(s): 73fb5bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -19,9 +19,11 @@ def fill_mask(sentences):
19
  def replace_mask(sentence, predicted_word):
20
  return sentence.replace("<mask>", f"**{predicted_word}**")
21
 
22
- st.title("Fill Mask | Zabantu-sot-ven-170m")
23
  st.write(f"")
24
 
 
 
25
  col1, col2 = st.columns(2)
26
 
27
  if 'text_input' not in st.session_state:
@@ -33,7 +35,7 @@ if 'warnings' not in st.session_state:
33
  with col1:
34
  with st.container(border=True):
35
  st.markdown("Input :clipboard:")
36
- sample_sentence = "Vhana vhane vha kha ḓi bva u bebwa vha kha khombo ya u <mask> nga Listeriosis."
37
 
38
  text_input = st.text_area(
39
  "Enter sentences with <mask> token:",
 
19
  def replace_mask(sentence, predicted_word):
20
  return sentence.replace("<mask>", f"**{predicted_word}**")
21
 
22
+ st.title("Fill Mask | Zabantu-nso-ven-170m")
23
  st.write(f"")
24
 
25
+ st.markdown("This is a variant of Zabantu pre-trained on a multilingual dataset of Tshivenda(ven) and Sepedi(nso) sentences on a transformer network with 170 million traininable parameters.")
26
+
27
  col1, col2 = st.columns(2)
28
 
29
  if 'text_input' not in st.session_state:
 
35
  with col1:
36
  with st.container(border=True):
37
  st.markdown("Input :clipboard:")
38
+ sample_sentence = "Rabulasi wa <mask> u khou bvelela nga u lima"
39
 
40
  text_input = st.text_area(
41
  "Enter sentences with <mask> token:",