Spaces:
Build error
Build error
Update app.py
Browse files
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(
|
| 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
|