Update app.py
Browse files
app.py
CHANGED
|
@@ -130,13 +130,13 @@ def transcribe_core(path, model):
|
|
| 130 |
|
| 131 |
# 4) 以繁體全文產生摘要(也強制繁體)
|
| 132 |
sum_prompt = (
|
| 133 |
-
"請用台灣繁體中文 (避免使用簡體字), 如果轉錄內容需要的話, 請條列出重點 (不限制條列數量,
|
| 134 |
+ full_trad
|
| 135 |
)
|
| 136 |
sum_resp = client.chat.completions.create(
|
| 137 |
model="gpt-4o-mini",
|
| 138 |
messages=[
|
| 139 |
-
{"role": "system", "content": "
|
| 140 |
{"role": "user", "content": sum_prompt}
|
| 141 |
],
|
| 142 |
temperature=0.2,
|
|
|
|
| 130 |
|
| 131 |
# 4) 以繁體全文產生摘要(也強制繁體)
|
| 132 |
sum_prompt = (
|
| 133 |
+
"請用台灣繁體中文 (避免使用簡體字), 如果轉錄內容需要的話, 請條列出重點 (不限制條列數量, 精簡就好, 讓人可以快速理解原文重點), 注意, 你的工作不是回答原文的內容, 而是 summarize 它而已。"
|
| 134 |
+ full_trad
|
| 135 |
)
|
| 136 |
sum_resp = client.chat.completions.create(
|
| 137 |
model="gpt-4o-mini",
|
| 138 |
messages=[
|
| 139 |
+
{"role": "system", "content": "你是一位精準且嚴格使用繁體中文(台灣)的摘要助手。"},
|
| 140 |
{"role": "user", "content": sum_prompt}
|
| 141 |
],
|
| 142 |
temperature=0.2,
|