alexander1010 commited on
Commit
69a6e6e
·
verified ·
1 Parent(s): eeb09ee

update sentiment_analysis_service.py

Browse files
src/expon/presentation/domain/services/sentiment_analysis_service.py CHANGED
@@ -4,6 +4,9 @@ from huggingface_hub import login
4
  import shutil
5
  import os
6
 
 
 
 
7
  class SentimentAnalysisService:
8
  def __init__(self):
9
  try:
 
4
  import shutil
5
  import os
6
 
7
+ os.environ['TRANSFORMERS_CACHE'] = '/tmp/huggingface'
8
+ os.makedirs('/tmp/huggingface', exist_ok=True)
9
+
10
  class SentimentAnalysisService:
11
  def __init__(self):
12
  try: