Wataru commited on
Commit
a9075b6
1 Parent(s): 0871d92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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='cuda',
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):