Update app.py
Browse files
app.py
CHANGED
@@ -27,10 +27,9 @@ def mistral_model():
|
|
27 |
Returns:
|
28 |
tuple: A tuple containing the loaded model and tokenizer.
|
29 |
"""
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
tokenizer = AutoTokenizer.from_pretrained("/home/user/app/mistral/")
|
34 |
|
35 |
return model,tokenizer
|
36 |
|
|
|
27 |
Returns:
|
28 |
tuple: A tuple containing the loaded model and tokenizer.
|
29 |
"""
|
30 |
+
model_id = "/code/mistral/"
|
31 |
+
model = AutoModelForCausalLM.from_pretrained("/home/user/app/mistral/")
|
32 |
+
tokenizer = AutoTokenizer.from_pretrained("/home/user/app/mistral/")
|
|
|
33 |
|
34 |
return model,tokenizer
|
35 |
|