Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,15 +12,17 @@ from typing import List
|
|
| 12 |
from PIL import Image as PILImage
|
| 13 |
|
| 14 |
|
|
|
|
| 15 |
import warnings
|
| 16 |
warnings.filterwarnings("ignore", category=UserWarning)
|
| 17 |
warnings.filterwarnings("ignore", category=FutureWarning)
|
| 18 |
warnings.filterwarnings("ignore", message=".*")
|
| 19 |
-
from huggingface_hub import logging
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
| 24 |
|
| 25 |
# ==============================================================================
|
| 26 |
# --- IMPORTAÇÃO DOS SERVIÇOS DE BACKEND E UTILS (CAMINHOS ATUALIZADOS) ---
|
|
|
|
| 12 |
from PIL import Image as PILImage
|
| 13 |
|
| 14 |
|
| 15 |
+
import logging
|
| 16 |
import warnings
|
| 17 |
warnings.filterwarnings("ignore", category=UserWarning)
|
| 18 |
warnings.filterwarnings("ignore", category=FutureWarning)
|
| 19 |
warnings.filterwarnings("ignore", message=".*")
|
| 20 |
+
from huggingface_hub import logging as ll
|
| 21 |
+
ll.set_verbosity_error()
|
| 22 |
+
ll.set_verbosity_warning()
|
| 23 |
+
ll.set_verbosity_info()
|
| 24 |
+
ll.set_verbosity_debug()
|
| 25 |
+
|
| 26 |
|
| 27 |
# ==============================================================================
|
| 28 |
# --- IMPORTAÇÃO DOS SERVIÇOS DE BACKEND E UTILS (CAMINHOS ATUALIZADOS) ---
|