vladyur commited on
Commit
4bd4566
1 Parent(s): 9adf451

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -44,9 +44,14 @@ button = st.button('Go')
44
  if button:
45
  #try:
46
  result = predict(text, model, tokenizer)
47
- st.subheader('Max Korzh:')
48
- lines = result.split('\n')
49
- for line in lines:
50
- st.write(line)
 
 
 
 
 
51
  #except Exception:
52
  # st.error("Ooooops, something went wrong. Try again please and report to me, tg: @vladyur")
 
44
  if button:
45
  #try:
46
  result = predict(text, model, tokenizer)
47
+
48
+ #st.subheader('Max Korzh:')
49
+ #lines = result.split('\n')
50
+ #for line in lines:
51
+ # st.write(line)
52
+
53
+ lines = result.replace('\n', '\n\n')
54
+ st.write(lines)
55
+
56
  #except Exception:
57
  # st.error("Ooooops, something went wrong. Try again please and report to me, tg: @vladyur")