Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,9 @@ def transcribe(audio_path):
|
|
50 |
audio_cnt, sr = librosa.load(audio_path, sr=16000)
|
51 |
|
52 |
# 将音频数据传递给 processor
|
53 |
-
input_values = processor(audio_cnt, sampling_rate=16000, return_tensors="pt")
|
|
|
|
|
54 |
|
55 |
# 模型推理
|
56 |
with torch.no_grad():
|
|
|
50 |
audio_cnt, sr = librosa.load(audio_path, sr=16000)
|
51 |
|
52 |
# 将音频数据传递给 processor
|
53 |
+
input_values = processor(audio_cnt, sampling_rate=16000, return_tensors="pt")
|
54 |
+
|
55 |
+
print(input_values)
|
56 |
|
57 |
# 模型推理
|
58 |
with torch.no_grad():
|