Hawoly18 commited on
Commit
f7064a1
·
verified ·
1 Parent(s): e4c78fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
10
 
11
 
12
  tokenizer = AutoTokenizer.from_pretrained(model_name)
13
- model = AutoModelForCausalLM.from_pretrained(model_name).to(device)
14
 
15
  def respond(
16
  message: str,
 
10
 
11
 
12
  tokenizer = AutoTokenizer.from_pretrained(model_name)
13
+ model = AutoModelForCausalLM.from_pretrained(model_name)
14
 
15
  def respond(
16
  message: str,