Spaces:
Runtime error
Runtime error
Update m5.py
Browse files
m5.py
CHANGED
@@ -5,6 +5,8 @@ from accelerate import Accelerator
|
|
5 |
from transformers import AutoTokenizer, AutoModel
|
6 |
from sklearn.metrics.pairwise import cosine_similarity
|
7 |
|
|
|
|
|
8 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
9 |
|
10 |
class DM(nn.Module):
|
|
|
5 |
from transformers import AutoTokenizer, AutoModel
|
6 |
from sklearn.metrics.pairwise import cosine_similarity
|
7 |
|
8 |
+
# Set the TRANSFORMERS_CACHE environment variable to a writable directory
|
9 |
+
os.environ['TRANSFORMERS_CACHE'] = '/app/cache'
|
10 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
11 |
|
12 |
class DM(nn.Module):
|