Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,16 +1,15 @@
|
|
| 1 |
import streamlit as st
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
def generate_blog_title(name, audience, word_count):
|
| 4 |
-
title = f"**Title:** {name} - A {audience} Guide to {word_count} Words"
|
| 5 |
-
return title
|
| 6 |
|
| 7 |
def main():
|
| 8 |
-
st.title("
|
| 9 |
st.markdown(
|
| 10 |
"""
|
| 11 |
<style>
|
| 12 |
body {
|
| 13 |
-
background-color: #
|
| 14 |
color: white;
|
| 15 |
}
|
| 16 |
</style>
|
|
@@ -24,7 +23,7 @@ def main():
|
|
| 24 |
word_count = st.sidebar.slider("Number of Words", min_value=50, max_value=1000, value=200, step=50)
|
| 25 |
|
| 26 |
if st.sidebar.button("Generate Blog"):
|
| 27 |
-
blog_content = generate_blog(
|
| 28 |
st.markdown(blog_content, unsafe_allow_html=True)
|
| 29 |
|
| 30 |
if __name__ == "__main__":
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
from main import generate_blog
|
| 3 |
+
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
def main():
|
| 7 |
+
st.title(" :fire: Professional Blog Generator :fire:")
|
| 8 |
st.markdown(
|
| 9 |
"""
|
| 10 |
<style>
|
| 11 |
body {
|
| 12 |
+
background-color: #000000;;
|
| 13 |
color: white;
|
| 14 |
}
|
| 15 |
</style>
|
|
|
|
| 23 |
word_count = st.sidebar.slider("Number of Words", min_value=50, max_value=1000, value=200, step=50)
|
| 24 |
|
| 25 |
if st.sidebar.button("Generate Blog"):
|
| 26 |
+
blog_content = generate_blog(role, word_count ,topic)
|
| 27 |
st.markdown(blog_content, unsafe_allow_html=True)
|
| 28 |
|
| 29 |
if __name__ == "__main__":
|