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