Spaces:
Sleeping
Sleeping
fix: 修正 transcript 相關變數初始化與錯誤訊息,避免 referenced before assignment 問題
Browse files
app.py
CHANGED
@@ -576,6 +576,7 @@ def convert_transcription_to_json(original_transcription):
|
|
576 |
return all_results
|
577 |
|
578 |
def generate_transcription_by_whisper(video_id):
|
|
|
579 |
youtube_url = f'https://www.youtube.com/watch?v={video_id}'
|
580 |
codec_name = "mp3"
|
581 |
outtmpl = f"{OUTPUT_PATH}/{video_id}.%(ext)s"
|
|
|
576 |
return all_results
|
577 |
|
578 |
def generate_transcription_by_whisper(video_id):
|
579 |
+
print("====generate_transcription_by_whisper====")
|
580 |
youtube_url = f'https://www.youtube.com/watch?v={video_id}'
|
581 |
codec_name = "mp3"
|
582 |
outtmpl = f"{OUTPUT_PATH}/{video_id}.%(ext)s"
|