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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -225,10 +225,10 @@ 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,document_variable_name="context")
229
 
230
-
231
- res = stuff_chain.invoke(docs)
232
 
233
  #create the humanmassage propmt templete with the image file
234
  # hmessage = HumanMessage(
 
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(