Spaces:
Sleeping
Sleeping
YasirAbdali
commited on
Commit
•
be8e82b
1
Parent(s):
923db2d
Update app.py
Browse files
app.py
CHANGED
@@ -37,13 +37,13 @@ if topic:
|
|
37 |
# Decode and display generated text
|
38 |
generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
|
39 |
|
40 |
-
st.subheader("Generated
|
41 |
st.markdown(generated_text)
|
42 |
|
43 |
# Option to download the blog post
|
44 |
st.download_button(
|
45 |
-
label="Download
|
46 |
data=generated_text,
|
47 |
-
file_name="
|
48 |
mime="text/markdown"
|
49 |
)
|
|
|
37 |
# Decode and display generated text
|
38 |
generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
|
39 |
|
40 |
+
st.subheader("Generated Blog Post:")
|
41 |
st.markdown(generated_text)
|
42 |
|
43 |
# Option to download the blog post
|
44 |
st.download_button(
|
45 |
+
label="Download Blog Post",
|
46 |
data=generated_text,
|
47 |
+
file_name="generated_blog.md",
|
48 |
mime="text/markdown"
|
49 |
)
|