Doron Adler commited on
Commit
b36cee2
1 Parent(s): a768034

* revert to streamlit version 0.80.0

Browse files

* show length of results, print result to log

Files changed (2) hide show
  1. app.py +2 -0
  2. requirements.txt +1 -1
app.py CHANGED
@@ -119,4 +119,6 @@ if __name__ == "__main__":
119
  print("Done length: " + str(len(result)) + " bytes")
120
  #<div class="rtl" dir="rtl" style="text-align:right;">
121
  st.markdown(f"<p dir=\"rtl\" style=\"text-align:right;\"> {result} </p>", unsafe_allow_html=True)
 
 
122
 
 
119
  print("Done length: " + str(len(result)) + " bytes")
120
  #<div class="rtl" dir="rtl" style="text-align:right;">
121
  st.markdown(f"<p dir=\"rtl\" style=\"text-align:right;\"> {result} </p>", unsafe_allow_html=True)
122
+ st.write("\n\nResult length: " + str(len(result)) + " bytes")
123
+ print(f"\"{result}\"")
124
 
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- streamlit
2
  transformers
3
  tokenizers
4
  torch
 
1
+ streamlit=0.80.0
2
  transformers
3
  tokenizers
4
  torch