Spaces:
Runtime error
Runtime error
output formatting
Browse files
app.py
CHANGED
@@ -18,6 +18,6 @@ if text:
|
|
18 |
decoded_output = tokenizer.batch_decode(output, skip_special_tokens=True)[0]
|
19 |
predicted_title = nltk.sent_tokenize(decoded_output.strip())[0]
|
20 |
|
21 |
-
html_string = f"<h3>
|
22 |
|
23 |
st.markdown(html_string, unsafe_allow_html=True)
|
|
|
18 |
decoded_output = tokenizer.batch_decode(output, skip_special_tokens=True)[0]
|
19 |
predicted_title = nltk.sent_tokenize(decoded_output.strip())[0]
|
20 |
|
21 |
+
html_string = f"<h3>The predicted title is:\'{predicted_title}\'</h3>"
|
22 |
|
23 |
st.markdown(html_string, unsafe_allow_html=True)
|