Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ if submit:
|
|
36 |
st.subheader("Suggested sentence: ")
|
37 |
|
38 |
out_text = ttokenizer.decode(outputs[0], skip_special_tokens=True)
|
39 |
-
st.success(out_text)
|
40 |
|
41 |
st.markdown("### Edited sentence:")
|
42 |
c_text = ""
|
@@ -47,5 +47,4 @@ if submit:
|
|
47 |
c_text = c_text + '<span style="font-weight:bold; color:rgb(0,255,0);">' + x + '</span>' + " "
|
48 |
|
49 |
ct = c_text.capitalize()
|
50 |
-
st.write(str(ct))
|
51 |
st.markdown(str(ct), unsafe_allow_html=True)
|
|
|
36 |
st.subheader("Suggested sentence: ")
|
37 |
|
38 |
out_text = ttokenizer.decode(outputs[0], skip_special_tokens=True)
|
39 |
+
st.success(out_text.capitalize())
|
40 |
|
41 |
st.markdown("### Edited sentence:")
|
42 |
c_text = ""
|
|
|
47 |
c_text = c_text + '<span style="font-weight:bold; color:rgb(0,255,0);">' + x + '</span>' + " "
|
48 |
|
49 |
ct = c_text.capitalize()
|
|
|
50 |
st.markdown(str(ct), unsafe_allow_html=True)
|