Spaces:
Sleeping
Sleeping
AjithBharadwaj
commited on
Delete app.py
Browse files
app.py
DELETED
@@ -1,31 +0,0 @@
|
|
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>
|
16 |
-
""",
|
17 |
-
unsafe_allow_html=True
|
18 |
-
)
|
19 |
-
|
20 |
-
st.sidebar.header("Input Parameters")
|
21 |
-
role = st.sidebar.text_input("Who is this intednded for ?", "Ex - Data Scientist")
|
22 |
-
topic = st.sidebar.text_input("On what Topic should the blog be on ?", "Ex - Machine Learning")
|
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__":
|
30 |
-
main()
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|