Spaces:
Sleeping
Sleeping
fix reset music
Browse files- Gradio_UI.py +1 -1
Gradio_UI.py
CHANGED
|
@@ -269,6 +269,7 @@ class GradioUI:
|
|
| 269 |
)
|
| 270 |
|
| 271 |
def launch(self, **kwargs):
|
|
|
|
| 272 |
import gradio as gr
|
| 273 |
|
| 274 |
with gr.Blocks(fill_height=True) as demo:
|
|
@@ -295,7 +296,6 @@ class GradioUI:
|
|
| 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(
|
|
|
|
| 269 |
)
|
| 270 |
|
| 271 |
def launch(self, **kwargs):
|
| 272 |
+
global audio_url_deezer
|
| 273 |
import gradio as gr
|
| 274 |
|
| 275 |
with gr.Blocks(fill_height=True) as demo:
|
|
|
|
| 296 |
)
|
| 297 |
text_input = gr.Textbox(lines=1, label="Chat Message")
|
| 298 |
# Small reset of audio url when reloading
|
|
|
|
| 299 |
audio_url_deezer = None
|
| 300 |
test_audio = gr.Audio(play_audio, autoplay=True, loop=True, every=2)
|
| 301 |
text_input.submit(
|