Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import subprocess
|
|
6 |
from langdetect import detect_langs
|
7 |
import os
|
8 |
import warnings
|
9 |
-
from transformers import logging
|
10 |
import math
|
11 |
import json
|
12 |
import tempfile
|
@@ -18,7 +18,9 @@ logging.basicConfig(level=logging.INFO)
|
|
18 |
|
19 |
# Suprimir advertencias
|
20 |
warnings.filterwarnings("ignore")
|
21 |
-
|
|
|
|
|
22 |
|
23 |
# Modelos actualizados por idioma
|
24 |
MODELS = {
|
|
|
6 |
from langdetect import detect_langs
|
7 |
import os
|
8 |
import warnings
|
9 |
+
from transformers import logging as transformers_logging
|
10 |
import math
|
11 |
import json
|
12 |
import tempfile
|
|
|
18 |
|
19 |
# Suprimir advertencias
|
20 |
warnings.filterwarnings("ignore")
|
21 |
+
|
22 |
+
# Configurar verbosidad para transformers
|
23 |
+
transformers_logging.set_verbosity_error()
|
24 |
|
25 |
# Modelos actualizados por idioma
|
26 |
MODELS = {
|