seiching commited on
Commit
1f0bb94
1 Parent(s): 5e5f20d

remove summary,直接分段做會議紀錄

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- #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 finalresponse
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]))