Spaces:
Sleeping
Sleeping
Commit ·
f44232c
1
Parent(s): dcbd743
Update app.py
Browse files
app.py
CHANGED
|
@@ -114,8 +114,8 @@ def summarize_pdf(pdf_file, api_key,
|
|
| 114 |
map_reduce_chain = load_summarize_chain(
|
| 115 |
gpt_llm,
|
| 116 |
chain_type="map_reduce",
|
| 117 |
-
map_prompt=
|
| 118 |
-
combine_prompt=
|
| 119 |
return_intermediate_steps=True,
|
| 120 |
token_max=3840 # limit the maximum number of tokens in the combined document (combine prompt).
|
| 121 |
)
|
|
|
|
| 114 |
map_reduce_chain = load_summarize_chain(
|
| 115 |
gpt_llm,
|
| 116 |
chain_type="map_reduce",
|
| 117 |
+
map_prompt=map_template,
|
| 118 |
+
combine_prompt=combine_template,
|
| 119 |
return_intermediate_steps=True,
|
| 120 |
token_max=3840 # limit the maximum number of tokens in the combined document (combine prompt).
|
| 121 |
)
|