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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ from langchain import FewShotPromptTemplate
5
  from langchain.prompts.example_selector import LengthBasedExampleSelector
6
  from dotenv import load_dotenv
7
 
8
- load_dotenv()
9
 
10
  def getLLMResponse(query,age_option,tasktype_option):
11
  examples = []
@@ -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=200
117
  )
118
 
119
 
 
5
  from langchain.prompts.example_selector import LengthBasedExampleSelector
6
  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 = []
 
113
  example_selector = LengthBasedExampleSelector(
114
  examples=examples,
115
  example_prompt=example_prompt,
116
+ max_length=numberOfWords
117
  )
118
 
119