Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,8 @@ def getLLMResponse(query,age_option,tasktype_option):
|
|
48 |
)
|
49 |
|
50 |
|
51 |
-
prefix = """You are a {template_ageoption}, and {template_tasktype_option}
|
|
|
52 |
Here are some examples:
|
53 |
"""
|
54 |
|
@@ -87,10 +88,10 @@ st.set_page_config(page_title="Marketing Tool",
|
|
87 |
initial_sidebar_state='collapsed')
|
88 |
st.header("Hey, How can I help you?")
|
89 |
|
90 |
-
form_input = st.text_area('Enter text', height=
|
91 |
|
92 |
tasktype_option = st.selectbox(
|
93 |
-
'Please select the action to be performed
|
94 |
('Write a sales copy', 'Create a tweet', 'Write a product description'),key=1)
|
95 |
|
96 |
age_option= st.selectbox(
|
|
|
48 |
)
|
49 |
|
50 |
|
51 |
+
prefix = """You are a {template_ageoption}, and {template_tasktype_option}, \
|
52 |
+
you give one answer at a time, and the answer has no more than 200 words. For tweet, you should not give more than 200 words.
|
53 |
Here are some examples:
|
54 |
"""
|
55 |
|
|
|
88 |
initial_sidebar_state='collapsed')
|
89 |
st.header("Hey, How can I help you?")
|
90 |
|
91 |
+
form_input = st.text_area('Enter text', height=100)
|
92 |
|
93 |
tasktype_option = st.selectbox(
|
94 |
+
'Please select the action to be performed',
|
95 |
('Write a sales copy', 'Create a tweet', 'Write a product description'),key=1)
|
96 |
|
97 |
age_option= st.selectbox(
|