freddyaboulton HF staff commited on
Commit
c822b84
1 Parent(s): 9cf5061

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def transcribe(audio: tuple[int, np.ndarray], transformers_convo: list[dict], gr
46
  name = str(uuid.uuid4()) + ".mp3"
47
  segment.export(name, format="mp3")
48
  transformers_convo.append({"role": "user", "content": [{"type": "audio", "audio_url": name}]})
49
- gradio_convo.append({"role": "assistant", "content": gr.Audio(value=name)})
50
  text = processor.apply_chat_template(transformers_convo, add_generation_prompt=True, tokenize=False)
51
  audios = []
52
  for message in transformers_convo:
 
46
  name = str(uuid.uuid4()) + ".mp3"
47
  segment.export(name, format="mp3")
48
  transformers_convo.append({"role": "user", "content": [{"type": "audio", "audio_url": name}]})
49
+ gradio_convo.append({"role": "user", "content": gr.Audio(value=name)})
50
  text = processor.apply_chat_template(transformers_convo, add_generation_prompt=True, tokenize=False)
51
  audios = []
52
  for message in transformers_convo: