Tuchuanhuhuhu commited on
Commit
523e0f2
1 Parent(s): c473a73

修复依赖版本,更改自动总结的用语

Browse files
Files changed (2) hide show
  1. modules/models/base_model.py +1 -1
  2. requirements.txt +1 -1
modules/models/base_model.py CHANGED
@@ -274,7 +274,7 @@ class BaseLLMModel:
274
  chain = load_summarize_chain(llm, chain_type="map_reduce", return_intermediate_steps=True, map_prompt=PROMPT, combine_prompt=PROMPT)
275
  summary = chain({"input_documents": list(index.docstore.__dict__["_dict"].values())}, return_only_outputs=True)["output_text"]
276
  print(i18n("总结") + f": {summary}")
277
- chatbot.append([i18n("总结"), summary])
278
  return gr.Files.update(), chatbot, status
279
 
280
  def prepare_inputs(self, real_inputs, use_websearch, files, reply_language, chatbot):
 
274
  chain = load_summarize_chain(llm, chain_type="map_reduce", return_intermediate_steps=True, map_prompt=PROMPT, combine_prompt=PROMPT)
275
  summary = chain({"input_documents": list(index.docstore.__dict__["_dict"].values())}, return_only_outputs=True)["output_text"]
276
  print(i18n("总结") + f": {summary}")
277
+ chatbot.append([i18n("上传了")+len(files)+"个文件", summary])
278
  return gr.Files.update(), chatbot, status
279
 
280
  def prepare_inputs(self, real_inputs, use_websearch, files, reply_language, chatbot):
requirements.txt CHANGED
@@ -15,7 +15,7 @@ pdfplumber
15
  pandas
16
  commentjson
17
  openpyxl
18
- pandocs
19
  wolframalpha
20
  faiss-cpu
21
  google-search-results
 
15
  pandas
16
  commentjson
17
  openpyxl
18
+ pandoc
19
  wolframalpha
20
  faiss-cpu
21
  google-search-results