clfegg commited on
Commit
57c38eb
1 Parent(s): 4142315

Update handler.py

Browse files
Files changed (1) hide show
  1. 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