Vitrous commited on
Commit
4016e2b
·
verified ·
1 Parent(s): 35fb342

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -27,10 +27,9 @@ def mistral_model():
27
  Returns:
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("/home/user/app/mistral/")
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