Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
```{
|
| 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({"
|
| 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()
|