Hamda commited on
Commit
7078b67
·
1 Parent(s): fa1c92c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -31,7 +31,9 @@ sent += ' <mask>'
31
  pipe = pipeline("fill-mask", tokenizer=tokenizer, model=model)
32
  dict_next_words = next_word(sent, pipe)
33
  df = pd.DataFrame.from_dict(dict_next_words)
34
- df.reset_index(drop=True, inplace=True)
35
 
36
- st.dataframe(df.style.highlight_max(axis=0))
 
 
37
  #st.table(df)
 
31
  pipe = pipeline("fill-mask", tokenizer=tokenizer, model=model)
32
  dict_next_words = next_word(sent, pipe)
33
  df = pd.DataFrame.from_dict(dict_next_words)
34
+ #df.reset_index(drop=True, inplace=True)
35
 
36
+ st.bar_chart(data=df, use_container_width=True)
37
+
38
+ #st.dataframe(df.style.highlight_max(axis=0))
39
  #st.table(df)