Update app.py
Browse files
app.py
CHANGED
|
@@ -26,9 +26,6 @@ if text:
|
|
| 26 |
|
| 27 |
# Decode generated text
|
| 28 |
generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
|
| 29 |
-
|
| 30 |
-
# Display generated text
|
| 31 |
-
st.subheader("Generated Blog Post")
|
| 32 |
st.json(generated_text)
|
| 33 |
except Exception as e:
|
| 34 |
st.error(f"An error occurred: {e}")
|
|
|
|
| 26 |
|
| 27 |
# Decode generated text
|
| 28 |
generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
|
|
|
|
|
|
|
|
|
|
| 29 |
st.json(generated_text)
|
| 30 |
except Exception as e:
|
| 31 |
st.error(f"An error occurred: {e}")
|