Update app.py
Browse files
app.py
CHANGED
@@ -28,8 +28,8 @@ def mistral_model():
|
|
28 |
tuple: A tuple containing the loaded model and tokenizer.
|
29 |
"""
|
30 |
if torch.cuda.is_available():
|
31 |
-
model_id = "
|
32 |
-
model = AutoModelForCausalLM.from_pretrained(model_id
|
33 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
34 |
|
35 |
return model,tokenizer
|
|
|
28 |
tuple: A tuple containing the loaded model and tokenizer.
|
29 |
"""
|
30 |
if torch.cuda.is_available():
|
31 |
+
model_id = "/code/mistral/"
|
32 |
+
model = AutoModelForCausalLM.from_pretrained(model_id)
|
33 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
34 |
|
35 |
return model,tokenizer
|