Spaces:
Sleeping
Sleeping
reset audio url when lauching the music again
Browse files- Gradio_UI.py +3 -0
Gradio_UI.py
CHANGED
@@ -294,6 +294,9 @@ class GradioUI:
|
|
294 |
[upload_status, file_uploads_log],
|
295 |
)
|
296 |
text_input = gr.Textbox(lines=1, label="Chat Message")
|
|
|
|
|
|
|
297 |
test_audio = gr.Audio(play_audio, autoplay=True, loop=True, every=2)
|
298 |
text_input.submit(
|
299 |
self.log_user_message,
|
|
|
294 |
[upload_status, file_uploads_log],
|
295 |
)
|
296 |
text_input = gr.Textbox(lines=1, label="Chat Message")
|
297 |
+
# Small reset of audio url when reloading
|
298 |
+
global audio_url_deezer
|
299 |
+
audio_url_deezer = None
|
300 |
test_audio = gr.Audio(play_audio, autoplay=True, loop=True, every=2)
|
301 |
text_input.submit(
|
302 |
self.log_user_message,
|