Oysiyl commited on
Commit
652203a
1 Parent(s): 0d2eaf0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,8 +75,8 @@ def cyrillic_to_latin(text: Text) -> Text:
75
 
76
 
77
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
78
-
79
- dtype = torch.bfloat16 if torch.cuda.get_device_capability()[0] == 8 else torch.float16
80
 
81
  spk_model_name = "speechbrain/spkrec-xvect-voxceleb"
82
 
 
75
 
76
 
77
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
78
+ if torch.cuda.is_available():
79
+ dtype = torch.bfloat16 if torch.cuda.get_device_capability()[0] == 8 else torch.float16
80
 
81
  spk_model_name = "speechbrain/spkrec-xvect-voxceleb"
82