Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ blocksize = 512
|
|
51 |
tts_model.tts_to_file("text", speaker_id, quiet=True)
|
52 |
dummy_input = torch.randn(
|
53 |
(1, 80, 3000),
|
54 |
-
dtype="float16",
|
55 |
device="cuda",
|
56 |
)
|
57 |
transcriber = pipeline("automatic-speech-recognition", model="openai/whisper-tiny.en", device="cuda")
|
|
|
51 |
tts_model.tts_to_file("text", speaker_id, quiet=True)
|
52 |
dummy_input = torch.randn(
|
53 |
(1, 80, 3000),
|
54 |
+
dtype=getattr(torch, "float16"),
|
55 |
device="cuda",
|
56 |
)
|
57 |
transcriber = pipeline("automatic-speech-recognition", model="openai/whisper-tiny.en", device="cuda")
|