eeuuia commited on
Commit
7dbc149
·
verified ·
1 Parent(s): e5567b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -22,12 +22,9 @@ import imageio
22
 
23
  # --- Configuração de Logging e Avisos ---
24
  import warnings
25
- warnings.filterwarnings("ignore", category="UserWarning")
26
- warnings.filterwarnings("ignore", category="FutureWarning")
27
  warnings.filterwarnings("ignore", message=".*")
28
- from huggingface_hub import logging as hf_logging
29
- hf_logging.set_verbosity_error()
30
-
31
 
32
  # --- CARREGAMENTO DIRETO DOS MODELOS (SEM CLASSE) ---
33
 
 
22
 
23
  # --- Configuração de Logging e Avisos ---
24
  import warnings
25
+ warnings.filterwarnings("ignore", category=UserWarning) # Correto: UserWarning é uma classe
26
+ warnings.filterwarnings("ignore", category=FutureWarning) # Correto: FutureWarning é uma classe
27
  warnings.filterwarnings("ignore", message=".*")
 
 
 
28
 
29
  # --- CARREGAMENTO DIRETO DOS MODELOS (SEM CLASSE) ---
30