lorentz commited on
Commit
bdbd09e
·
verified ·
1 Parent(s): 5c89db0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -113,7 +113,7 @@ def getLLMResponse(query,age_option,tasktype_option):
113
  example_selector = LengthBasedExampleSelector(
114
  examples=examples,
115
  example_prompt=example_prompt,
116
- max_length=numberOfWords
117
  )
118
 
119
 
@@ -151,7 +151,8 @@ age_option= st.selectbox(
151
  'For which target age group?',
152
  ('Kid', 'Adult', 'senior Citizen'),key=2)
153
 
154
- numberOfWords= st.slider('Words limit', 1, 200, 25)
 
155
 
156
  submit = st.button("Generate")
157
 
 
113
  example_selector = LengthBasedExampleSelector(
114
  examples=examples,
115
  example_prompt=example_prompt,
116
+ max_length = numberOfWords
117
  )
118
 
119
 
 
151
  'For which target age group?',
152
  ('Kid', 'Adult', 'senior Citizen'),key=2)
153
 
154
+ # numberOfWords= st.slider('Words limit', 1, 200, 25)
155
+ numberOfWords = 40
156
 
157
  submit = st.button("Generate")
158