Spaces:
Running
Running
Update apis/chat_api.py
Browse files- apis/chat_api.py +1 -1
apis/chat_api.py
CHANGED
@@ -108,7 +108,7 @@ class ChatAPIApp:
|
|
108 |
time_start = time.time()
|
109 |
#TRANSFORMERS_CACHE
|
110 |
pretrained_model = "facebook/m2m100_1.2B"
|
111 |
-
cache_dir = "
|
112 |
tokenizer = M2M100Tokenizer.from_pretrained(pretrained_model, cache_dir=cache_dir)
|
113 |
model = M2M100ForConditionalGeneration.from_pretrained(
|
114 |
pretrained_model, cache_dir=cache_dir
|
|
|
108 |
time_start = time.time()
|
109 |
#TRANSFORMERS_CACHE
|
110 |
pretrained_model = "facebook/m2m100_1.2B"
|
111 |
+
cache_dir = "models/"
|
112 |
tokenizer = M2M100Tokenizer.from_pretrained(pretrained_model, cache_dir=cache_dir)
|
113 |
model = M2M100ForConditionalGeneration.from_pretrained(
|
114 |
pretrained_model, cache_dir=cache_dir
|