Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ if submit:
|
|
35 |
num_return_sequences=1
|
36 |
)
|
37 |
|
38 |
-
st.subheader("Suggested
|
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 + '
|
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)
|