Spaces:
Runtime error
Runtime error
NicolasGaudemet
commited on
Commit
•
a967cc3
1
Parent(s):
6e668ce
Update summarizer_app.py
Browse files- summarizer_app.py +1 -1
summarizer_app.py
CHANGED
@@ -33,7 +33,7 @@ def summarize_text(text_to_summarize, llm):
|
|
33 |
{text}
|
34 |
SUMMARY:"""
|
35 |
summary_langage_prompt = PromptTemplate(template=prompt_template, input_variables=['text'])
|
36 |
-
chain = load_summarize_chain(llm, chain_type="map_reduce", return_intermediate_steps=True, map_prompt=summary_langage_prompt
|
37 |
steps = chain({"input_documents": docs}, return_only_outputs=True)
|
38 |
|
39 |
print(len(steps['intermediate_steps']))
|
|
|
33 |
{text}
|
34 |
SUMMARY:"""
|
35 |
summary_langage_prompt = PromptTemplate(template=prompt_template, input_variables=['text'])
|
36 |
+
chain = load_summarize_chain(llm, chain_type="map_reduce", return_intermediate_steps=True, map_prompt=summary_langage_prompt)
|
37 |
steps = chain({"input_documents": docs}, return_only_outputs=True)
|
38 |
|
39 |
print(len(steps['intermediate_steps']))
|