fb700 commited on
Commit
e60a583
1 Parent(s): 2ab59ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -788,7 +788,7 @@ def GGSearch(
788
  search_results = []
789
 
790
  # 限制搜索结果数量为3
791
- search_results = search_results[:5]
792
 
793
  # 从搜索结果抓取文本并存储到 GGSearchins
794
  scraped_texts = []
@@ -803,8 +803,8 @@ def GGSearch(
803
  chatbot.append(("联网搜索结果:", GGSearchins))
804
  history.append(("联网搜索结果:", GGSearchins))
805
  ggins1="请围用户搜索主题,对搜索结果进行全面的总结。\n用户搜索主题:"
806
- #user_input =ggins1+ user_input+ "\n搜索结果:\n"+ GGSearchins
807
- user_input= "请你尽量用简洁的语言总结下面的内容"+ GGSearchins
808
  # 继续正常的 GPT 对话流程
809
  yield from predict(
810
  RETRY_FLAG,
 
788
  search_results = []
789
 
790
  # 限制搜索结果数量为3
791
+ search_results = search_results[:3]
792
 
793
  # 从搜索结果抓取文本并存储到 GGSearchins
794
  scraped_texts = []
 
803
  chatbot.append(("联网搜索结果:", GGSearchins))
804
  history.append(("联网搜索结果:", GGSearchins))
805
  ggins1="请围用户搜索主题,对搜索结果进行全面的总结。\n用户搜索主题:"
806
+ user_input =ggins1+ user_input+ "\n搜索结果:\n"+ GGSearchins
807
+ #user_input= "请你尽量用简洁的语言总结下面的内容"+ GGSearchins
808
  # 继续正常的 GPT 对话流程
809
  yield from predict(
810
  RETRY_FLAG,