Zaious commited on
Commit
8f74823
·
verified ·
1 Parent(s): 9d22697

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -83,7 +83,7 @@ def find_most_relevant_section(input_text, file_texts):
83
  # 定义处理上传文件和回答的函数
84
  def gpt_answer(brand_name, files):
85
  file_contents = [parse_file(file) for file in files]
86
- most_relevant_text = find_most_relevant_section(input_text, file_contents)
87
 
88
  response = f"品牌名称: {brand_name}\n\n最相关的内容:\n{most_relevant_text}"
89
  return response
 
83
  # 定义处理上传文件和回答的函数
84
  def gpt_answer(brand_name, files):
85
  file_contents = [parse_file(file) for file in files]
86
+ most_relevant_text = find_most_relevant_section(brand_name, file_contents)
87
 
88
  response = f"品牌名称: {brand_name}\n\n最相关的内容:\n{most_relevant_text}"
89
  return response