Update app.py
Browse files
app.py
CHANGED
@@ -11,31 +11,6 @@ def getLLMResponse(query, age_option,tasktype_option):
|
|
11 |
examples = []
|
12 |
llm = OpenAI(temperature=.9, model="gpt-3.5-turbo-instruct")
|
13 |
|
14 |
-
# if age_option=="Kid": #Silly and Sweet Kid
|
15 |
-
#
|
16 |
-
# examples = [
|
17 |
-
# {
|
18 |
-
# "query": "What is a mobile?",
|
19 |
-
# "answer": "A mobile is a magical device that fits in your pocket, like a mini-enchanted playground. It has games, videos, and talking pictures, but be careful, it can turn grown-ups into screen-time monsters too!"
|
20 |
-
# }
|
21 |
-
# ]
|
22 |
-
#
|
23 |
-
# elif age_option=="Adult": #Curious and Intelligent adult
|
24 |
-
# examples = [
|
25 |
-
# {
|
26 |
-
# "query": "What is a mobile?",
|
27 |
-
# "answer": "A mobile is a portable communication device, commonly known as a mobile phone or cell phone. It allows users to make calls, send messages, access the internet, and use various applications. Additionally, 'mobile' can also refer to a type of kinetic sculpture that hangs and moves in the air, often found in art installations or as decorative pieces."
|
28 |
-
# }
|
29 |
-
# ]
|
30 |
-
#
|
31 |
-
# elif age_option=="Senior Citizen": #A 90 years old guys
|
32 |
-
# examples = [
|
33 |
-
# {
|
34 |
-
# "query": "What is a mobile?",
|
35 |
-
# "answer": "A mobile, also known as a cellphone or smartphone, is a portable device that allows you to make calls, send messages, take pictures, browse the internet, and do many other things. In the last 50 years, I have seen mobiles become smaller, more powerful, and capable of amazing things like video calls and accessing information instantly."
|
36 |
-
# }
|
37 |
-
# ]
|
38 |
-
|
39 |
|
40 |
example_template = """
|
41 |
Question: {query}
|
@@ -102,7 +77,7 @@ st.markdown("<p style='text-align: right; color: grey;'>By <a href='https://entz
|
|
102 |
# )
|
103 |
|
104 |
form_input = st.text_area('Enter the name of the product or service you want to promote: ', 'PlayStation 6', height=100)
|
105 |
-
st.write(f'You wrote {len(form_input)} characters.')
|
106 |
|
107 |
tasktype_option = st.selectbox(
|
108 |
'Choose the type of marketing copy you want to generate: ',
|
|
|
11 |
examples = []
|
12 |
llm = OpenAI(temperature=.9, model="gpt-3.5-turbo-instruct")
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
example_template = """
|
16 |
Question: {query}
|
|
|
77 |
# )
|
78 |
|
79 |
form_input = st.text_area('Enter the name of the product or service you want to promote: ', 'PlayStation 6', height=100)
|
80 |
+
# st.write(f'You wrote {len(form_input)} characters.')
|
81 |
|
82 |
tasktype_option = st.selectbox(
|
83 |
'Choose the type of marketing copy you want to generate: ',
|