rajat5ranjan commited on
Commit
4c6d3a1
·
verified ·
1 Parent(s): b6234bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -225,11 +225,11 @@ if ticker_user!="":
225
  llm_prompt = PromptTemplate.from_template(llm_prompt_template)
226
 
227
  llm_chain = LLMChain(llm=llm,prompt=llm_prompt)
228
- stuff_chain = StuffDocumentsChain(llm_chain=llm_chain)
229
 
230
  st.write(stuff_chain.input_keys)
231
- res = stuff_chain.invoke({"context": docs})
232
-
233
  #create the humanmassage propmt templete with the image file
234
  # hmessage = HumanMessage(
235
  # content=[
 
225
  llm_prompt = PromptTemplate.from_template(llm_prompt_template)
226
 
227
  llm_chain = LLMChain(llm=llm,prompt=llm_prompt)
228
+ stuff_chain = StuffDocumentsChain(llm_chain=llm_chain,document_variable_name="context")
229
 
230
  st.write(stuff_chain.input_keys)
231
+ res = stuff_chain.invoke(docs)
232
+ # res = stuff_chain.invoke({"context": docs})
233
  #create the humanmassage propmt templete with the image file
234
  # hmessage = HumanMessage(
235
  # content=[