Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from transformers import (
|
|
9 |
)
|
10 |
from peft import PeftModel, PeftConfig
|
11 |
|
12 |
-
|
13 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
14 |
|
15 |
peft_model_id = "Namkoy/whisper_peft_vi_nam"
|
|
|
9 |
)
|
10 |
from peft import PeftModel, PeftConfig
|
11 |
|
12 |
+
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
|
13 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
14 |
|
15 |
peft_model_id = "Namkoy/whisper_peft_vi_nam"
|