Spaces:
Sleeping
Sleeping
Commit ·
0f55618
1
Parent(s): 66ddc02
logging
Browse files
app.py
CHANGED
|
@@ -5,10 +5,14 @@ import re
|
|
| 5 |
import subprocess
|
| 6 |
import tempfile
|
| 7 |
from transformers import pipeline
|
|
|
|
| 8 |
|
| 9 |
|
| 10 |
MODEL_ID = "ejschwartz/oo-method-test-model-bylibrary"
|
| 11 |
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
classifier = pipeline(
|
| 14 |
"text-classification",
|
|
|
|
| 5 |
import subprocess
|
| 6 |
import tempfile
|
| 7 |
from transformers import pipeline
|
| 8 |
+
from transformers.utils import logging as hf_logging
|
| 9 |
|
| 10 |
|
| 11 |
MODEL_ID = "ejschwartz/oo-method-test-model-bylibrary"
|
| 12 |
|
| 13 |
+
hf_logging.set_verbosity_debug()
|
| 14 |
+
hf_logging.enable_default_handler()
|
| 15 |
+
hf_logging.enable_explicit_format()
|
| 16 |
|
| 17 |
classifier = pipeline(
|
| 18 |
"text-classification",
|