badrex commited on
Commit
75f1597
·
verified ·
1 Parent(s): 7082254

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -7,9 +7,8 @@ import torch
7
  # Load the model
8
  print("Loading model...")
9
  model_id = "badrex/mms-300m-arabic-dialect-identifier"
10
- classifier = pipeline("audio-classification", model=model_id)
11
  print("Model loaded successfully")
12
- classifier.model.to('cuda')
13
  print("Model moved to GPU successfully")
14
 
15
 
 
7
  # Load the model
8
  print("Loading model...")
9
  model_id = "badrex/mms-300m-arabic-dialect-identifier"
10
+ classifier = pipeline("audio-classification", model=model_id, device='cuda')
11
  print("Model loaded successfully")
 
12
  print("Model moved to GPU successfully")
13
 
14