Skip to content

Fix audio chat only working for first message in gradio_demo#330

Open
Mr-Neutr0n wants to merge 1 commit intofixie-ai:mainfrom
Mr-Neutr0n:fix/gradio-audio-clear-after-processing
Open

Fix audio chat only working for first message in gradio_demo#330
Mr-Neutr0n wants to merge 1 commit intofixie-ai:mainfrom
Mr-Neutr0n:fix/gradio-audio-clear-after-processing

Conversation

@Mr-Neutr0n
Copy link

Summary

  • Clears the audio component after processing to allow subsequent audio recordings
  • Without this fix, the audio component retained the previous recording state, causing new recordings to be ignored by the model

Related Issue

Fixes #324

Test plan

  • Run gradio_demo.py
  • Send first audio message - should work
  • Send second audio message - should now work (previously failed)
  • Verify text chat still works correctly

Clear the audio component after processing to allow subsequent audio
recordings to work correctly. Without this, the audio component retained
the previous recording state, causing new recordings to be ignored.

Fixes fixie-ai#324
@Mr-Neutr0n
Copy link
Author

hi, wanted to check on this. the audio chat in gradio_demo only works for the first message because the audio state doesn't reset properly. the fix is pretty minimal

@Mr-Neutr0n
Copy link
Author

Friendly bump! Let me know if there's anything I should update or improve to help move this forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Audio chat only works for first message in gradio_demo.py

1 participant