Spaces:
Runtime error
Runtime error
Commit
•
7e86222
1
Parent(s):
3502814
Update service.py
Browse files- service.py +4 -0
service.py
CHANGED
@@ -3,6 +3,10 @@ import bentoml
|
|
3 |
from bentoml.io import Image, JSON
|
4 |
from transformers import pipeline
|
5 |
from transformers import AutoFeatureExtractor, AutoModelForObjectDetection
|
|
|
|
|
|
|
|
|
6 |
|
7 |
class PretrainedModelRunnable(bentoml.Runnable):
|
8 |
SUPPORTED_RESOURCES = ("cpu",)
|
|
|
3 |
from bentoml.io import Image, JSON
|
4 |
from transformers import pipeline
|
5 |
from transformers import AutoFeatureExtractor, AutoModelForObjectDetection
|
6 |
+
import transformers
|
7 |
+
|
8 |
+
transformers.logging.set_verbosity_info()
|
9 |
+
|
10 |
|
11 |
class PretrainedModelRunnable(bentoml.Runnable):
|
12 |
SUPPORTED_RESOURCES = ("cpu",)
|