Update handler.py
Browse files- handler.py +3 -1
handler.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
from typing import Dict, List, Any
|
2 |
from PIL import Image
|
3 |
from io import BytesIO
|
4 |
-
|
|
|
|
|
5 |
import base64
|
6 |
|
7 |
|
|
|
1 |
from typing import Dict, List, Any
|
2 |
from PIL import Image
|
3 |
from io import BytesIO
|
4 |
+
# Needs a specific package to install on the container
|
5 |
+
# from optimum.nvidia.pipelines import pipeline
|
6 |
+
from transformers import pipeline
|
7 |
import base64
|
8 |
|
9 |
|