RemVdH commited on
Commit
e488bf0
·
verified ·
1 Parent(s): 698b3ec

Update Gradio_UI.py

Browse files

Change hopefully to make sound response work

Files changed (1) hide show
  1. Gradio_UI.py +2 -1
Gradio_UI.py CHANGED
@@ -42,7 +42,8 @@ def pull_messages_from_step(step_log: MemoryStep):
42
  model_output = clean_up_LLM_output(step_log.model_output.strip())
43
  # TEST TO BE CHANGED
44
  if "music" in model_output:
45
- yield gr.Audio(value="../resources/GenAI Revolution.mp3", autoplay=True)
 
46
  else:
47
  yield gr.ChatMessage(role="assistant", content=model_output)
48
 
 
42
  model_output = clean_up_LLM_output(step_log.model_output.strip())
43
  # TEST TO BE CHANGED
44
  if "music" in model_output:
45
+ an_output = ["SOUND?",gr.Audio(value="../resources/GenAI Revolution.mp3", autoplay=True)]
46
+ yield gr.ChatMessage(role="assistant", content=an_output)
47
  else:
48
  yield gr.ChatMessage(role="assistant", content=model_output)
49