Spaces:
Paused
Paused
Update app.py
Browse files
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=
|
| 26 |
-
warnings.filterwarnings("ignore", category=
|
| 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 |
|