ManishThota commited on
Commit
feb7d12
·
verified ·
1 Parent(s): a6c6902

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -3,6 +3,7 @@ from PIL import Image
3
  import torch
4
  from transformers import AutoModelForCausalLM, AutoTokenizer
5
 
 
6
  torch.set_default_device("cuda")
7
 
8
  # Initialize the model and tokenizer
 
3
  import torch
4
  from transformers import AutoModelForCausalLM, AutoTokenizer
5
 
6
+ #Setting device to cuda
7
  torch.set_default_device("cuda")
8
 
9
  # Initialize the model and tokenizer