JunzhaoSun commited on
Commit
5084967
1 Parent(s): b619e95

修复模型地址错误

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,8 +5,8 @@ import librosa
5
  import torch
6
  from transformers import WhisperProcessor, WhisperForConditionalGeneration
7
 
8
- # checkpoint = "openai/whisper-base"
9
- checkpoint = "/innev/open-ai/huggingface/openai/whisper-base"
10
  processor = WhisperProcessor.from_pretrained(checkpoint)
11
  model = WhisperForConditionalGeneration.from_pretrained(checkpoint)
12
 
 
5
  import torch
6
  from transformers import WhisperProcessor, WhisperForConditionalGeneration
7
 
8
+ checkpoint = "openai/whisper-base"
9
+ # checkpoint = "/innev/open-ai/huggingface/openai/whisper-base"
10
  processor = WhisperProcessor.from_pretrained(checkpoint)
11
  model = WhisperForConditionalGeneration.from_pretrained(checkpoint)
12