vishnun commited on
Commit
88398ac
·
1 Parent(s): 2c8c876

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,7 +35,7 @@ if submit:
35
  num_return_sequences=1
36
  )
37
 
38
- st.subheader("Suggested sentences: ")
39
 
40
  out_text = ttokenizer.decode(outputs[0], skip_special_tokens=True)
41
  st.success(out_text)
@@ -46,6 +46,6 @@ if submit:
46
  if x in input_text.split(" "):
47
  c_text = c_text + x + " "
48
  else:
49
- c_text = c_text + '**' + x + '**' + " "
50
 
51
  st.markdown(c_text, unsafe_allow_html=True)
 
35
  num_return_sequences=1
36
  )
37
 
38
+ st.subheader("Suggested sentence: ")
39
 
40
  out_text = ttokenizer.decode(outputs[0], skip_special_tokens=True)
41
  st.success(out_text)
 
46
  if x in input_text.split(" "):
47
  c_text = c_text + x + " "
48
  else:
49
+ c_text = c_text + '<span tyle="font-weight:bold; color:rgb(0,255,0);>' + x + '</span>' + " "
50
 
51
  st.markdown(c_text, unsafe_allow_html=True)