ukumar557 commited on
Commit
9d00c70
·
verified ·
1 Parent(s): 2cd6d6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ if device.type == "cpu":
10
  # Load the tokenizer and model directly
11
  model_name = "ruslanmv/ai-medical-model-32bit"
12
  tokenizer = AutoTokenizer.from_pretrained(model_name)
13
- model = AutoModelForCausalLM.from_pretrained(model_name)
14
 
15
 
16
 
 
10
  # Load the tokenizer and model directly
11
  model_name = "ruslanmv/ai-medical-model-32bit"
12
  tokenizer = AutoTokenizer.from_pretrained(model_name)
13
+ model = AutoModelForCausalLM.from_pretrained(model_name).to(device)
14
 
15
 
16