👍️[Update] Model : warnings ignoreの場所を修正

This commit is contained in:
misyaguziya committed 2024-09-01 18:11:45 +09:00
1 parent c724f7d7ae
commit bde07be4e2
2 files changed
+2 -3

No files matched your search

@@ -11,6 +11,8 @@ from .transcription_whisper import getWhisperModel, checkWhisperWeight
import torch
import numpy as np
from pydub import AudioSegment
import warnings
warnings.simplefilter('ignore', RuntimeWarning)
PHRASE_TIMEOUT = 3
MAX_PHRASES = 10