Update handler.py
Browse files- handler.py +3 -1
handler.py
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
-
|
|
|
|
|
2 |
from sentence_transformers import SentenceTransformer, util
|
3 |
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
4 |
from PIL import Image
|
|
|
1 |
+
import os
|
2 |
+
current_dir = os.getcwd()
|
3 |
+
os.environ['HF_HOME'] = os.path.join(current_dir)
|
4 |
from sentence_transformers import SentenceTransformer, util
|
5 |
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
6 |
from PIL import Image
|