Spaces:
Runtime error
Runtime error
Commit
·
6c74bc5
1
Parent(s):
6ea89ae
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ def asesor_transito(query):
|
|
81 |
initial_qa_prompt = PromptTemplate(
|
82 |
input_variables=["context_str", "question"], template=initial_qa_template
|
83 |
)
|
84 |
-
chain = load_qa_chain(OpenAI(temperature=0), chain_type="refine", return_refine_steps=False,
|
85 |
question_prompt=initial_qa_prompt, refine_prompt=refine_prompt)
|
86 |
ans = chain({"input_documents": docs, "question": query}, return_only_outputs=True)['output_text']
|
87 |
return ans
|
|
|
81 |
initial_qa_prompt = PromptTemplate(
|
82 |
input_variables=["context_str", "question"], template=initial_qa_template
|
83 |
)
|
84 |
+
chain = load_qa_chain(OpenAI(temperature=0.3), chain_type="refine", return_refine_steps=False,
|
85 |
question_prompt=initial_qa_prompt, refine_prompt=refine_prompt)
|
86 |
ans = chain({"input_documents": docs, "question": query}, return_only_outputs=True)['output_text']
|
87 |
return ans
|