Spaces:
Running
Running
JunzhaoSun
commited on
Commit
•
5084967
1
Parent(s):
b619e95
修复模型地址错误
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ import librosa
|
|
5 |
import torch
|
6 |
from transformers import WhisperProcessor, WhisperForConditionalGeneration
|
7 |
|
8 |
-
|
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 |
|