versae commited on
Commit
ad6cbd0
·
verified ·
1 Parent(s): 5b11f8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ lang = "fi"
14
  share = (os.environ.get("SHARE", "False")[0].lower() in "ty1") or None
15
  auth_token = os.environ.get("AUTH_TOKEN") or True
16
  device = 0 if torch.cuda.is_available() else "cpu"
17
- print("Using device: {device}")
18
  pipe = pipeline(
19
  task="automatic-speech-recognition",
20
  model=MODEL_NAME,
 
14
  share = (os.environ.get("SHARE", "False")[0].lower() in "ty1") or None
15
  auth_token = os.environ.get("AUTH_TOKEN") or True
16
  device = 0 if torch.cuda.is_available() else "cpu"
17
+ print(f"Using device: {device}")
18
  pipe = pipeline(
19
  task="automatic-speech-recognition",
20
  model=MODEL_NAME,