Update app.py
Browse files
app.py
CHANGED
@@ -32,9 +32,9 @@ def mistral_model():
|
|
32 |
else:
|
33 |
print("CUDA is not available. CPU will be used.")
|
34 |
|
35 |
-
model = AutoModelForCausalLM.from_pretrained(
|
36 |
|
37 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
38 |
|
39 |
return model,tokenizer
|
40 |
|
|
|
32 |
else:
|
33 |
print("CUDA is not available. CPU will be used.")
|
34 |
|
35 |
+
model = AutoModelForCausalLM.from_pretrained(mistral_model)
|
36 |
|
37 |
+
tokenizer = AutoTokenizer.from_pretrained(mistral_model)
|
38 |
|
39 |
return model,tokenizer
|
40 |
|