Ahmed107 commited on
Commit
5fa1a82
·
verified ·
1 Parent(s): efed192

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -6,6 +6,7 @@ from datasets import load_dataset, Audio
6
  # Load your model
7
  classifier = pipeline("audio-classification", model="Ahmed107/whisper-tiny-finetuned-eos_poc5_ge-di-v3")
8
 
 
9
  # Function to resample audio to 16kHz
10
  def resample_audio(audio_file, target_sampling_rate=16000):
11
  waveform, original_sample_rate = torchaudio.load(audio_file)
 
6
  # Load your model
7
  classifier = pipeline("audio-classification", model="Ahmed107/whisper-tiny-finetuned-eos_poc5_ge-di-v3")
8
 
9
+
10
  # Function to resample audio to 16kHz
11
  def resample_audio(audio_file, target_sampling_rate=16000):
12
  waveform, original_sample_rate = torchaudio.load(audio_file)