Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ if tokenizer.pad_token is None:
|
|
20 |
|
21 |
tokenizer.clean_up_tokenization_spaces = True
|
22 |
|
23 |
-
# Set device for model and
|
24 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
25 |
model.to(device)
|
26 |
|
|
|
20 |
|
21 |
tokenizer.clean_up_tokenization_spaces = True
|
22 |
|
23 |
+
# Set device for model and tensorss
|
24 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
25 |
model.to(device)
|
26 |
|