Update app.py
Browse files
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 |
|