KushwanthK commited on
Commit
5a477d8
·
verified ·
1 Parent(s): a26e565

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -92,7 +92,7 @@ def prompt_engineer(text, longtext, query):
92
  write a concise summary of the following text delimited by triple backquotes.
93
  return your response in bullet points which convers the key points of the text.
94
 
95
- ```{text}```
96
 
97
  BULLET POINT SUMMARY:
98
  """
@@ -126,7 +126,7 @@ def prompt_engineer(text, longtext, query):
126
  chain = create_stuff_documents_chain(llm, prompt)
127
 
128
  # Invoke chain
129
- summary = chain.invoke({"text": longtext})
130
 
131
  with st.sidebar:
132
  st.divider()
 
92
  write a concise summary of the following text delimited by triple backquotes.
93
  return your response in bullet points which convers the key points of the text.
94
 
95
+ ```{context}```
96
 
97
  BULLET POINT SUMMARY:
98
  """
 
126
  chain = create_stuff_documents_chain(llm, prompt)
127
 
128
  # Invoke chain
129
+ summary = chain.invoke({"context": longtext})
130
 
131
  with st.sidebar:
132
  st.divider()