Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -7,10 +7,9 @@ transcribe = pipeline(
|
|
7 |
model="ckpt_base/checkpoint-1308",
|
8 |
tokenizer="ckpt_base",
|
9 |
chunk_length_s=30,
|
10 |
-
device=
|
11 |
)
|
12 |
transcribe.model.config.forced_decoder_ids = transcribe.tokenizer.get_decoder_prompt_ids(language="ja", task="transcribe")
|
13 |
-
transcribe.to('cuda')
|
14 |
|
15 |
@spaces.GPU
|
16 |
def main(audio_path):
|
|
|
7 |
model="ckpt_base/checkpoint-1308",
|
8 |
tokenizer="ckpt_base",
|
9 |
chunk_length_s=30,
|
10 |
+
device=0,
|
11 |
)
|
12 |
transcribe.model.config.forced_decoder_ids = transcribe.tokenizer.get_decoder_prompt_ids(language="ja", task="transcribe")
|
|
|
13 |
|
14 |
@spaces.GPU
|
15 |
def main(audio_path):
|