Update app.py
Browse files
app.py
CHANGED
|
@@ -119,7 +119,9 @@ async def generate_subtitle(
|
|
| 119 |
print(f"[Transcribe] 格式: {output_format} | 语言: {language or '自动检测'} | max_chars: {max_chars or '不拆分'}", flush=True)
|
| 120 |
|
| 121 |
try:
|
| 122 |
-
transcribe_options = {"
|
|
|
|
|
|
|
| 123 |
if language:
|
| 124 |
transcribe_options["language"] = language
|
| 125 |
|
|
|
|
| 119 |
print(f"[Transcribe] 格式: {output_format} | 语言: {language or '自动检测'} | max_chars: {max_chars or '不拆分'}", flush=True)
|
| 120 |
|
| 121 |
try:
|
| 122 |
+
transcribe_options = {"verbose": True}
|
| 123 |
+
if max_chars > 0:
|
| 124 |
+
transcribe_options["word_timestamps"] = True
|
| 125 |
if language:
|
| 126 |
transcribe_options["language"] = language
|
| 127 |
|