lorentz commited on
Commit
c286fe6
·
verified ·
1 Parent(s): e3b3920

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -7,7 +7,7 @@ from dotenv import load_dotenv
7
 
8
  load_dotenv() # load the env-sample.txt file
9
 
10
- def getLLMResponse(query,age_option,tasktype_option):
11
  examples = []
12
  llm = OpenAI(temperature=.9, model="gpt-3.5-turbo-instruct")
13
 
@@ -49,7 +49,7 @@ def getLLMResponse(query,age_option,tasktype_option):
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
 
@@ -96,10 +96,10 @@ tasktype_option = st.selectbox(
96
 
97
  age_option= st.selectbox(
98
  'For which target age group?',
99
- ('Adult', 'senior Citizen'),key=2)
100
 
101
  # numberOfWords= st.slider('Words limit', 1, 200, 25)
102
- numberOfWords = 40
103
 
104
  submit = st.button("Generate")
105
 
 
7
 
8
  load_dotenv() # load the env-sample.txt file
9
 
10
+ def getLLMResponse(query, age_option,tasktype_option):
11
  examples = []
12
  llm = OpenAI(temperature=.9, model="gpt-3.5-turbo-instruct")
13
 
 
49
 
50
 
51
  prefix = """You are a {template_ageoption}, and {template_tasktype_option}, \
52
+ you give one answer for each query. it is strictly limited to 1 answer only, and the answer must be less than 200 words. For tweet, you should not give more than 150 words.
53
  Here are some examples:
54
  """
55
 
 
96
 
97
  age_option= st.selectbox(
98
  'For which target age group?',
99
+ ('Kid' ,'Adult', 'senior Citizen'),key=2)
100
 
101
  # numberOfWords= st.slider('Words limit', 1, 200, 25)
102
+ numberOfWords = 40 # the model doesn't take this.
103
 
104
  submit = st.button("Generate")
105