Spaces:
Sleeping
Sleeping
imperialwool
commited on
Commit
•
e25a0c4
1
Parent(s):
9cb7ee7
Update gradio_app.py
Browse files- gradio_app.py +2 -2
gradio_app.py
CHANGED
@@ -8,10 +8,10 @@ import psutil
|
|
8 |
llm = Llama(model_path="./model.bin") # LLaMa model
|
9 |
llama_model_name = "TheBloke/Llama-2-13B-chat-GGUF"
|
10 |
translator_tokenizer = M2M100Tokenizer.from_pretrained( # tokenizer for translator
|
11 |
-
"facebook/
|
12 |
)
|
13 |
translator_model = M2M100ForConditionalGeneration.from_pretrained( # translator model
|
14 |
-
"facebook/
|
15 |
)
|
16 |
print("! SETTING MODEL IN EVALUATION MODE !")
|
17 |
translator_model.eval()
|
|
|
8 |
llm = Llama(model_path="./model.bin") # LLaMa model
|
9 |
llama_model_name = "TheBloke/Llama-2-13B-chat-GGUF"
|
10 |
translator_tokenizer = M2M100Tokenizer.from_pretrained( # tokenizer for translator
|
11 |
+
"facebook/m2m100_418M", cache_dir="translator/"
|
12 |
)
|
13 |
translator_model = M2M100ForConditionalGeneration.from_pretrained( # translator model
|
14 |
+
"facebook/m2m100_418M", cache_dir="translator/"
|
15 |
)
|
16 |
print("! SETTING MODEL IN EVALUATION MODE !")
|
17 |
translator_model.eval()
|