Update app.py
Browse files
app.py
CHANGED
@@ -34,8 +34,7 @@ def mistral_model():
|
|
34 |
print("CUDA is not available. CPU will be used.")
|
35 |
|
36 |
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2")
|
37 |
-
model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2/model-00001-of-00003.safetensors
|
38 |
-
")
|
39 |
|
40 |
return model,tokenizer
|
41 |
|
|
|
34 |
print("CUDA is not available. CPU will be used.")
|
35 |
|
36 |
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2")
|
37 |
+
model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2/model-00001-of-00003.safetensors")
|
|
|
38 |
|
39 |
return model,tokenizer
|
40 |
|