Skip to content

Agent Zero AI framework

Docker runtime preload

frdele469f6d7ba82
diff --git a/python/helpers/whisper_oai.py b/python/helpers/whisper_oai.py
index 7e917e523..4613039a9 100644
--- a/python/helpers/whisper_oai.py
+++ b/python/helpers/whisper_oai.py
@@ -1,8 +1,11 @@
# Import the necessary libraries
+import warnings
import whisper
-import files
import tempfile
+# suppress FutureWarning from torch.load
+warnings.filterwarnings('ignore', category=FutureWarning)
+
model = None
def preload():