UnarineLeo commited on
Commit
5bfad50
1 Parent(s): 7e25edc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -1
app.py CHANGED
@@ -20,11 +20,37 @@ def fill_mask(sentences):
20
  def replace_mask(sentence, predicted_word):
21
  return sentence.replace("<mask>", f"**{predicted_word}**")
22
 
23
- st.title("Fill Mask | Zabantu-ven-120m")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  st.write(f"")
25
 
26
  st.markdown("This is a variant of Zabantu pre-trained on a monolingual dataset of Tshivenda(ven) sentences on a transformer network with 120 million traininable parameters.")
27
 
 
 
 
 
 
 
 
 
28
  col1, col2 = st.columns(2)
29
 
30
  if 'text_input' not in st.session_state:
 
20
  def replace_mask(sentence, predicted_word):
21
  return sentence.replace("<mask>", f"**{predicted_word}**")
22
 
23
+ st.write(f"")
24
+ img1, img2, img3 = st.columns(3)
25
+ with img2:
26
+ with st.container(border=False):
27
+ st.image("logo_transparent_small.png")
28
+
29
+ st.markdown("""
30
+ <div style='text-align: center;'>
31
+ <a href='https://github.com/dsfsi' target='_blank'>Github</a> |
32
+ <a href='https://docs.google.com/forms/d/e/1FAIpQLSf7S36dyAUPx2egmXbFpnTBuzoRulhL5Elu-N1eoMhaO7v10w/viewform' target='_blank'>Feedback Form</a> |
33
+ <a href='https://huggingface.co/papers/1911.02116' target='_blank'>arxiv</a>
34
+ </div>
35
+ """, unsafe_allow_html=True)
36
+
37
+ st.markdown("""
38
+ <div style='text-align: center;'>
39
+ <h2>Fill Mask | Zabantu-ven-120m</h2>
40
+ </div>
41
+ """, unsafe_allow_html=True)
42
  st.write(f"")
43
 
44
  st.markdown("This is a variant of Zabantu pre-trained on a monolingual dataset of Tshivenda(ven) sentences on a transformer network with 120 million traininable parameters.")
45
 
46
+ with st.expander("More information about the space"):
47
+ st.write('''
48
+ Authors: Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer, Veselin Stoyanov
49
+ ''')
50
+ cit1,cit2 = st.columns(2)
51
+ # with cit1:
52
+ # with cit2:
53
+
54
  col1, col2 = st.columns(2)
55
 
56
  if 'text_input' not in st.session_state: