Spaces:
Sleeping
Sleeping
remove summary,直接分段做會議紀錄
Browse files
app.py
CHANGED
@@ -88,11 +88,11 @@ def process_chunks(openaikeystr,inputtext):
|
|
88 |
chunks = split_into_chunks(text)
|
89 |
response=''
|
90 |
for chunk in chunks:
|
91 |
-
|
92 |
-
|
93 |
|
94 |
-
finalresponse=response+' summary \n\n' +call_openai_api(openaiobj,response)
|
95 |
-
return
|
96 |
# # Processes chunks in parallel
|
97 |
# with ThreadPoolExecutor() as executor:
|
98 |
# responses = list(executor.map(call_openai_api, [openaiobj,chunks]))
|
|
|
88 |
chunks = split_into_chunks(text)
|
89 |
response=''
|
90 |
for chunk in chunks:
|
91 |
+
response=response+call_openai_api(openaiobj,chunk)
|
92 |
+
# response=response+call_openai_summary(openaiobj,chunk)
|
93 |
|
94 |
+
#finalresponse=response+' summary \n\n' +call_openai_api(openaiobj,response)
|
95 |
+
return response
|
96 |
# # Processes chunks in parallel
|
97 |
# with ThreadPoolExecutor() as executor:
|
98 |
# responses = list(executor.map(call_openai_api, [openaiobj,chunks]))
|