Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ def generate_answer(brand_name,question, files):
|
|
| 24 |
fun_2 = executor.submit(gpt_answer,brand_name,question, info)
|
| 25 |
ans = fun_2.result()
|
| 26 |
|
| 27 |
-
return
|
| 28 |
|
| 29 |
# 函数:解析PDF文件
|
| 30 |
def extract_text_from_pdf(file_path):
|
|
@@ -134,7 +134,7 @@ def gpt_answer(brand_name,question, info):
|
|
| 134 |
completed_text = response.choices[0].message.content
|
| 135 |
|
| 136 |
|
| 137 |
-
return completed_text
|
| 138 |
|
| 139 |
demo = gr.Interface(
|
| 140 |
fn=gpt_answer,
|
|
|
|
| 24 |
fun_2 = executor.submit(gpt_answer,brand_name,question, info)
|
| 25 |
ans = fun_2.result()
|
| 26 |
|
| 27 |
+
return info,info
|
| 28 |
|
| 29 |
# 函数:解析PDF文件
|
| 30 |
def extract_text_from_pdf(file_path):
|
|
|
|
| 134 |
completed_text = response.choices[0].message.content
|
| 135 |
|
| 136 |
|
| 137 |
+
return completed_text
|
| 138 |
|
| 139 |
demo = gr.Interface(
|
| 140 |
fn=gpt_answer,
|