Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -40,12 +40,12 @@ if submit:
|
|
40 |
out_text = ttokenizer.decode(outputs[0], skip_special_tokens=True)
|
41 |
st.success(out_text)
|
42 |
|
|
|
43 |
c_text = " "
|
44 |
for x in out_text.split(" "):
|
45 |
if x in input_text.split(" "):
|
46 |
-
c_text = c_text +
|
47 |
else:
|
48 |
-
c_text = c_text + '
|
49 |
-
|
50 |
-
st.write(c_text)
|
51 |
st.markdown(c_text, unsafe_allow_html=True)
|
|
|
40 |
out_text = ttokenizer.decode(outputs[0], skip_special_tokens=True)
|
41 |
st.success(out_text)
|
42 |
|
43 |
+
st.markdown("### Edited sentence:")
|
44 |
c_text = " "
|
45 |
for x in out_text.split(" "):
|
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)
|