MusIre commited on
Commit
d2a0f58
·
1 Parent(s): 59dbe01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,8 +16,8 @@ forced_decoder_ids = processor.get_decoder_prompt_ids(language="italian", task="
16
 
17
  # Custom preprocessing function
18
  def preprocess_audio(audio_data, sampling_rate=16_000):
19
- # Ensure that the input data is a valid format for the model
20
- # Convert the audio data to a numpy array with a correct shape
21
  raw_speech = np.asarray(audio_data, dtype=np.float32)
22
 
23
  # Pad or truncate the audio data to the required length
 
16
 
17
  # Custom preprocessing function
18
  def preprocess_audio(audio_data, sampling_rate=16_000):
19
+ print(type(audio_data))
20
+ print(audio_data)
21
  raw_speech = np.asarray(audio_data, dtype=np.float32)
22
 
23
  # Pad or truncate the audio data to the required length