UnarineLeo commited on
Commit
fac5507
1 Parent(s): 7ba11ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +29 -1
app.py CHANGED
@@ -20,11 +20,39 @@ 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-nso-120m")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  st.write(f"")
25
 
26
  st.markdown("This is a variant of Zabantu pre-trained on a monolingual dataset of Sepedi(nso) 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-nso-120m</h2>
40
+ </div>
41
+ """, unsafe_allow_html=True)
42
+ st.write(f"")
43
  st.write(f"")
44
 
45
  st.markdown("This is a variant of Zabantu pre-trained on a monolingual dataset of Sepedi(nso) sentences on a transformer network with 120 million traininable parameters.")
46
 
47
+ with st.expander("More information about the space"):
48
+ st.write('''
49
+ Authors: Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer, Veselin Stoyanov
50
+ ''')
51
+ cit1,cit2 = st.columns(2)
52
+ # with cit1:
53
+ # with cit2:
54
+
55
+
56
  col1, col2 = st.columns(2)
57
 
58
  if 'text_input' not in st.session_state: