Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
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,
|