mikeee commited on
Commit
0e8721c
·
1 Parent(s): 987f644

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ has_cuda = torch.cuda.is_available()
27
  if has_cuda:
28
  model = AutoModel.from_pretrained(model_name, trust_remote_code=True).cuda() # 3.92G
29
  else:
30
- model = AutoModel.from_pretrained(model_name, trust_remote_code=True).float()
31
 
32
  model = model.eval()
33
 
 
27
  if has_cuda:
28
  model = AutoModel.from_pretrained(model_name, trust_remote_code=True).cuda() # 3.92G
29
  else:
30
+ model = AutoModel.from_pretrained(model_name, trust_remote_code=True) # .float()
31
 
32
  model = model.eval()
33