MichaelChou0806 commited on
Commit
5e2ef58
·
verified ·
1 Parent(s): 713c19a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -130,7 +130,7 @@ def transcribe_core(path, model):
130
 
131
  # 4) 以繁體全文產生摘要(也強制繁體)
132
  sum_prompt = (
133
- "請用台灣繁體中文 (避免使用簡體字), 條列式呈現重點。\n\n"
134
  + full_trad
135
  )
136
  sum_resp = client.chat.completions.create(
@@ -139,7 +139,7 @@ def transcribe_core(path, model):
139
  {"role": "system", "content": "你是一位精準且嚴格使用繁體中文(台灣)的摘要助手。"},
140
  {"role": "user", "content": sum_prompt}
141
  ],
142
- temperature=0.3,
143
  )
144
  summ = sum_resp.choices[0].message.content.strip()
145
 
 
130
 
131
  # 4) 以繁體全文產生摘要(也強制繁體)
132
  sum_prompt = (
133
+ "請用台灣繁體中文 (避免使用簡體字), 條列式呈現精簡重點 (如果需要的話)。\n\n"
134
  + full_trad
135
  )
136
  sum_resp = client.chat.completions.create(
 
139
  {"role": "system", "content": "你是一位精準且嚴格使用繁體中文(台灣)的摘要助手。"},
140
  {"role": "user", "content": sum_prompt}
141
  ],
142
+ temperature=0.2,
143
  )
144
  summ = sum_resp.choices[0].message.content.strip()
145