rajat5ranjan commited on
Commit
eb6a0e0
·
verified ·
1 Parent(s): 7d80a24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -67,7 +67,7 @@ if ticker_user!="":
67
  llm_prompt_template = """You are an expert Stock Market Trader specializing in stock market insights derived from fundamental analysis, analytical trends, profit-based evaluations, and detailed company financials. Using your expertise, please analyze the stock based on the provided context below.
68
 
69
  Context:
70
- {context}
71
 
72
  Task:
73
  Summarize the stock based on its historical and current data.
@@ -229,7 +229,7 @@ if ticker_user!="":
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=[
 
67
  llm_prompt_template = """You are an expert Stock Market Trader specializing in stock market insights derived from fundamental analysis, analytical trends, profit-based evaluations, and detailed company financials. Using your expertise, please analyze the stock based on the provided context below.
68
 
69
  Context:
70
+ {input_documents}
71
 
72
  Task:
73
  Summarize the stock based on its historical and current data.
 
229
 
230
  st.write(stuff_chain.input_keys)
231
  # res = stuff_chain.invoke(docs)
232
+ res = stuff_chain.invoke({"input_documents": docs})
233
  #create the humanmassage propmt templete with the image file
234
  # hmessage = HumanMessage(
235
  # content=[