seiching commited on
Commit
9282cfe
1 Parent(s): 7222f55

update prompt

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,7 +32,7 @@ def call_openai_api(openaiobj,transcription):
32
  messages=[
33
  {
34
  "role": "system",
35
- "content": "你是專業的會議紀錄製作員,請根據由語音辨識軟體將會議錄音所轉錄的逐字稿,也請注意逐字稿可能有錯,討論內容細節請略過,請列出會議決議,並要用比較正式及容易閱讀的寫法,避免口語化"
36
  },
37
  {
38
  "role": "user",
@@ -90,7 +90,7 @@ def process_chunks(openaikeystr,inputtext):
90
  i=1
91
  for chunk in chunks:
92
 
93
- response='第' +str(i)+'段\n'+response+call_openai_api(openaiobj,chunk)+'\n\n'
94
  i=i+1
95
  # response=response+call_openai_summary(openaiobj,chunk)
96
 
 
32
  messages=[
33
  {
34
  "role": "system",
35
+ "content": "你是專業的會議紀錄製作員,請根據由語音辨識軟體將會議錄音所轉錄的逐字稿,也請注意逐字稿可能有錯,討論內容細節請略過,請列出經主席確認的會議決議,並要用比較正式及容易閱讀的寫法,避免口語化"
36
  },
37
  {
38
  "role": "user",
 
90
  i=1
91
  for chunk in chunks:
92
 
93
+ response=response+'第' +str(i)+'段\n'+call_openai_api(openaiobj,chunk)+'\n\n'
94
  i=i+1
95
  # response=response+call_openai_summary(openaiobj,chunk)
96