Update Gradio_UI.py
Browse filesChange hopefully to make sound response work
- 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 |
-
|
|
|
|
| 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 |
|