Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def transcribe_with_diarization(audio_path):
|
|
29 |
print(start_time)
|
30 |
print(end_time)
|
31 |
label = segment # Extract the label manually
|
32 |
-
waveform, sample_rate = torchaudio.load(
|
33 |
start_sample = int(start_time * sample_rate)
|
34 |
end_sample = int(end_time * sample_rate)
|
35 |
print(waveform)
|
|
|
29 |
print(start_time)
|
30 |
print(end_time)
|
31 |
label = segment # Extract the label manually
|
32 |
+
waveform, sample_rate = torchaudio.load(audio_path, normalize=True)
|
33 |
start_sample = int(start_time * sample_rate)
|
34 |
end_sample = int(end_time * sample_rate)
|
35 |
print(waveform)
|