cosmicdream commited on
Commit
48226ad
·
1 Parent(s): 2f265c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,9 +26,9 @@ import ruclip
26
 
27
  # prepare models:
28
  #device = 'cuda'
29
- device1 = "cuda:0" if torch.cuda.is_available() else "CPU"
30
  fp16=True
31
- if device1 == 'CPU':
32
  fp16 = False
33
 
34
  model = get_rudalle_model('Malevich', pretrained=True, fp16=fp16, device=device)
 
26
 
27
  # prepare models:
28
  #device = 'cuda'
29
+ device = "cuda:0" if torch.cuda.is_available() else "CPU"
30
  fp16=True
31
+ if device == 'CPU':
32
  fp16 = False
33
 
34
  model = get_rudalle_model('Malevich', pretrained=True, fp16=fp16, device=device)