Spaces:
Runtime error
Runtime error
Commit
โข
e45a5c4
1
Parent(s):
f83431f
spaces attach for Zero spaces
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from transformers import pipeline
|
|
5 |
import torch
|
6 |
import tempfile
|
7 |
import subprocess
|
8 |
-
|
9 |
|
10 |
MODEL_NAME = "openai/whisper-large-v3"
|
11 |
BATCH_SIZE = 8
|
@@ -58,7 +58,7 @@ def model(text):
|
|
58 |
|
59 |
|
60 |
|
61 |
-
|
62 |
def process_audio(audio):
|
63 |
if not audio:
|
64 |
return "Please record an audio.", None
|
|
|
5 |
import torch
|
6 |
import tempfile
|
7 |
import subprocess
|
8 |
+
import spaces
|
9 |
|
10 |
MODEL_NAME = "openai/whisper-large-v3"
|
11 |
BATCH_SIZE = 8
|
|
|
58 |
|
59 |
|
60 |
|
61 |
+
@spaces.GPU
|
62 |
def process_audio(audio):
|
63 |
if not audio:
|
64 |
return "Please record an audio.", None
|