Update app.py
Browse files
app.py
CHANGED
@@ -9,9 +9,10 @@ if st.button("Generate Text"):
|
|
9 |
if seed_text:
|
10 |
generated_text = pipe(seed_text, max_length=100, do_sample=True)[0]['generated_text']
|
11 |
|
12 |
-
|
13 |
|
14 |
st.write("Generated Text:")
|
|
|
15 |
st.write(cleaned_text)
|
16 |
else:
|
17 |
st.write("Please enter a seed text to generate text.")
|
|
|
9 |
if seed_text:
|
10 |
generated_text = pipe(seed_text, max_length=100, do_sample=True)[0]['generated_text']
|
11 |
|
12 |
+
|
13 |
|
14 |
st.write("Generated Text:")
|
15 |
+
cleaned_text = generated_text.replace('\n', ' ')
|
16 |
st.write(cleaned_text)
|
17 |
else:
|
18 |
st.write("Please enter a seed text to generate text.")
|