Spaces:
Paused
Paused
Update app.py
Browse files
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
|