mannadamay12 commited on
Commit
a7422c1
·
verified ·
1 Parent(s): 97d7043

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -57,10 +57,10 @@ def initialize_model():
57
  token=token,
58
  device_map="cuda"
59
  )
60
- if torch.cuda.is_available():
61
- model.device = "cuda"
62
- else:
63
- print("CUDA is not available")
64
 
65
  return model, tokenizer
66
 
 
57
  token=token,
58
  device_map="cuda"
59
  )
60
+ # if torch.cuda.is_available():
61
+ # model.device = "cuda"
62
+ # else:
63
+ # print("CUDA is not available")
64
 
65
  return model, tokenizer
66