Imarticuslearning commited on
Commit
e584762
·
verified ·
1 Parent(s): c6fa8aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -19,8 +19,15 @@ from twilio.rest import Client
19
  import logging
20
  import whisper
21
  import speech_recognition as sr
22
- import warnings
23
- warnings.filterwarnings("ignore", category=UserWarning, module="streamlit.runtime.caching.cache_data_api")
 
 
 
 
 
 
 
24
  #model = whisper.load_model("base")
25
 
26
 
 
19
  import logging
20
  import whisper
21
  import speech_recognition as sr
22
+ import logging
23
+ import streamlit.runtime.caching.cache_data_api as cache_logger
24
+
25
+ # Suppress specific Streamlit cache warnings
26
+ logging.getLogger(cache_logger.__name__).setLevel(logging.ERROR)
27
+
28
+ # Suppress "missing ScriptRunContext" warning
29
+ logging.getLogger("streamlit").setLevel(logging.ERROR)
30
+
31
  #model = whisper.load_model("base")
32
 
33