freddyaboulton HF staff commited on
Commit
12f6caf
1 Parent(s): 63e5c46
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -44,8 +44,10 @@ def transcribe(
44
  audio[1].astype(np.float32) / 32768.0, orig_sr=original_sr, target_sr=target_sr
45
  )
46
 
 
 
47
  output = pipe(
48
- {"audio": audio_sr, "turns": conversation, "sampling_rate": target_sr},
49
  max_new_tokens=512,
50
  )
51
  transcription = whisper({"array": audio_sr.squeeze(), "sampling_rate": target_sr})
 
44
  audio[1].astype(np.float32) / 32768.0, orig_sr=original_sr, target_sr=target_sr
45
  )
46
 
47
+ tf_input = [d for d in transformers_chat]
48
+
49
  output = pipe(
50
+ {"audio": audio_sr, "turns": tf_input, "sampling_rate": target_sr},
51
  max_new_tokens=512,
52
  )
53
  transcription = whisper({"array": audio_sr.squeeze(), "sampling_rate": target_sr})