WIP - Streamlit UI, Porting CLI
This commit is contained in:
12
alwrity.py
12
alwrity.py
@@ -104,24 +104,26 @@ def sidebar_configuration():
|
|||||||
blog_length = st.text_input("**Content Length**", value="2000",
|
blog_length = st.text_input("**Content Length**", value="2000",
|
||||||
help="Length of blogs Or word count. Note: It won't be exact and depends on GPT providers and Max token count.")
|
help="Length of blogs Or word count. Note: It won't be exact and depends on GPT providers and Max token count.")
|
||||||
|
|
||||||
blog_tone_options = ["Casual", "Professional", "How-to", "Beginner", "Research", "Programming", "Social Media", "Others"]
|
blog_tone_options = ["Casual", "Professional", "How-to", "Beginner", "Research", "Programming", "Social Media", "Customize"]
|
||||||
blog_tone = st.selectbox("**Content Tone**",
|
blog_tone = st.selectbox("**Content Tone**",
|
||||||
options=blog_tone_options,
|
options=blog_tone_options,
|
||||||
help="Choose the tone of the blog.")
|
help="Choose the tone of the blog.")
|
||||||
|
|
||||||
if blog_tone == "Others":
|
if blog_tone == "Customize":
|
||||||
custom_tone = st.text_input("Enter the tone of your content", help="Specify the tone of your content.")
|
custom_tone = st.text_input("Enter the tone of your content", help="Specify the tone of your content.")
|
||||||
if custom_tone:
|
if custom_tone:
|
||||||
blog_tone = custom_tone
|
blog_tone = custom_tone
|
||||||
else:
|
else:
|
||||||
st.warning("Please specify the tone of your content.")
|
st.warning("Please specify the tone of your content.")
|
||||||
|
|
||||||
blog_demographic_options = ["Professional", "Domain Experts", "Gen-Z", "Tech-savvy", "Students", "Digital Marketing", "Others"]
|
blog_demographic_options = ["Professional", "Gen-Z", "Tech-savvy", "Student", "Digital Marketing", "Customize"]
|
||||||
blog_demographic = st.selectbox("Target Audience",
|
blog_demographic = st.selectbox("Target Audience",
|
||||||
options=blog_demographic_options,
|
options=blog_demographic_options,
|
||||||
help="Choose the target audience.")
|
help="Choose the target audience.")
|
||||||
if blog_demographic == "Others":
|
if blog_demographic == "Customize":
|
||||||
custom_demographic = st.text_input("Enter your target audience", help="Specify your target audience.")
|
custom_demographic = st.text_input("Enter your target audience",
|
||||||
|
help="Specify your target audience.",
|
||||||
|
placeholder="Eg. Domain expert, Content creator, Financial expert etc..")
|
||||||
if custom_demographic:
|
if custom_demographic:
|
||||||
blog_demographic = custom_demographic
|
blog_demographic = custom_demographic
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"Blog Content Characteristics": {
|
"Blog Content Characteristics": {
|
||||||
"Blog Length": "2000",
|
"Blog Length": "2000",
|
||||||
"Blog Tone": "Casual",
|
"Blog Tone": "Customize",
|
||||||
"Blog Demographic": "Professional",
|
"Blog Demographic": "Customize",
|
||||||
"Blog Type": "Informational",
|
"Blog Type": "Informational",
|
||||||
"Blog Language": "English",
|
"Blog Language": "English",
|
||||||
"Blog Output Format": "markdown"
|
"Blog Output Format": "markdown"
|
||||||
|
|||||||
Reference in New Issue
Block a user