Spaces:
Runtime error
Runtime error
jositonaranja
commited on
Commit
•
60509e3
1
Parent(s):
6e86492
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,8 @@ from glide_text2im.model_creation import (
|
|
15 |
|
16 |
has_cuda = th.cuda.is_available()
|
17 |
device = th.device('cpu' if not has_cuda else 'cuda')
|
|
|
|
|
18 |
# Create base model.
|
19 |
options = model_and_diffusion_defaults()
|
20 |
options['use_fp16'] = has_cuda
|
|
|
15 |
|
16 |
has_cuda = th.cuda.is_available()
|
17 |
device = th.device('cpu' if not has_cuda else 'cuda')
|
18 |
+
print('Using device:', device)
|
19 |
+
|
20 |
# Create base model.
|
21 |
options = model_and_diffusion_defaults()
|
22 |
options['use_fp16'] = has_cuda
|