gradio-app / gradio

Build and share delightful machine learning apps, all in Python. šŸŒŸ Star to support our work!
http://www.gradio.app
Apache License 2.0
31.99k stars 2.38k forks source link

Some issues related to `gr.Audio` and trimming #7702

Open abidlabs opened 5 months ago

abidlabs commented 5 months ago

Describe the bug

@osanseviero reported some issues related to https://huggingface.co/spaces/hilamanor/audioEditing

  1. Trimming crashes the audio

The first one is that when I

It crashes the demo

  1. When I click the examples in this demo, there seems to be a cached output, as the play icon and other UI elements show up, but there isn't anything

  2. Another one in the same demo Click example Click "Edit" (so an output audio is generate) Click play in the output Click another example while it's still running Suddenly the input and output components enter a weird state (I can't play the input for example, which does work after clicking refresh)

  3. If the output audio is playing, and I click edit, I still hear the output audio even if the output component is in generating state. I think the output audio should stop

Have you searched existing issues? šŸ”Ž

Reproduction

https://huggingface.co/spaces/hilamanor/audioEditing

Screenshot

No response

Logs

No response

System Info

4.21.0

Severity

Blocking usage of gradio

freddyaboulton commented 5 months ago

I can't repro 2 - clicking different examples updates the inputs and outputs accordingly. I noticed a small lag a bit ago in the switch but that could have been my connection.

audio_input_example