Skip to content

Commit

Permalink
Merge pull request #1222 from ji-jinlong/master
Browse files Browse the repository at this point in the history
Update 理解PDF文档内容.py
  • Loading branch information
binary-husky authored Nov 1, 2023
2 parents cd9f2ec + f016323 commit 8c4a753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crazy_functions/理解PDF文档内容.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_token_num(txt): return len(enc.encode(txt, disallowed_special=()))
gpt_say = yield from request_gpt_model_in_new_thread_with_ui_alive(i_say, i_say_show_user, # i_say=真正给chatgpt的提问, i_say_show_user=给用户看的提问
llm_kwargs, chatbot,
history=["The main idea of the previous section is?", last_iteration_result], # 迭代上一次的结果
sys_prompt="Extract the main idea of this section." # 提示
sys_prompt="Extract the main idea of this section, answer me with Chinese." # 提示
)
iteration_results.append(gpt_say)
last_iteration_result = gpt_say
Expand Down

0 comments on commit 8c4a753

Please sign in to comment.