Spaces:
Sleeping
Sleeping
Commit
·
b8ccea4
1
Parent(s):
e25a0c4
Update quart_app.py
Browse files- quart_app.py +2 -2
quart_app.py
CHANGED
@@ -9,10 +9,10 @@ app = Quart(__name__) # Quart app
|
|
9 |
llm = Llama(model_path="./model.bin") # LLaMa model
|
10 |
llama_model_name = "TheBloke/Llama-2-13B-chat-GGUF"
|
11 |
translator_tokenizer = M2M100Tokenizer.from_pretrained( # tokenizer for translator
|
12 |
-
"facebook/
|
13 |
)
|
14 |
translator_model = M2M100ForConditionalGeneration.from_pretrained( # translator model
|
15 |
-
"facebook/
|
16 |
)
|
17 |
translator_model.eval()
|
18 |
|
|
|
9 |
llm = Llama(model_path="./model.bin") # LLaMa model
|
10 |
llama_model_name = "TheBloke/Llama-2-13B-chat-GGUF"
|
11 |
translator_tokenizer = M2M100Tokenizer.from_pretrained( # tokenizer for translator
|
12 |
+
"facebook/m2m100_418M", cache_dir="translator/"
|
13 |
)
|
14 |
translator_model = M2M100ForConditionalGeneration.from_pretrained( # translator model
|
15 |
+
"facebook/m2m100_418M", cache_dir="translator/"
|
16 |
)
|
17 |
translator_model.eval()
|
18 |
|