hacpdsae2023 commited on
Commit
096dd49
·
1 Parent(s): 7d118a7

Replacing the new lines with spaces

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ st.markdown('We are using a sample fo the [TinyStories](roneneldan/TinyStories)
14
  text_text = dataset['train'][10]['text']
15
  st.write(text_text)
16
  st.markdown(':red[' + text_text + ']' )
17
- st.markdown("The next word is <span style='color:red'>" + text_text + "</span>",unsafe_allow_html=True)
18
 
19
  st.markdown('The threshold changes the level of connectivity in the network. The reange is from 0 (less similar) to 1 (completely similar)')
20
  threshhold = st.slider('Threshhold',0.0,1.0,step=0.1)
 
14
  text_text = dataset['train'][10]['text']
15
  st.write(text_text)
16
  st.markdown(':red[' + text_text + ']' )
17
+ st.markdown("The next word is <span style='color:red'>" + text_text.replace('\n',' ') + "</span>",unsafe_allow_html=True)
18
 
19
  st.markdown('The threshold changes the level of connectivity in the network. The reange is from 0 (less similar) to 1 (completely similar)')
20
  threshhold = st.slider('Threshhold',0.0,1.0,step=0.1)