SefyanKehail
commited on
Commit
·
4ff9373
1
Parent(s):
88ad63c
added progress instead of spinner
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ def enable_convert_button(audio):
|
|
| 77 |
def clear_components():
|
| 78 |
return None, None
|
| 79 |
|
| 80 |
-
def stop_recording_info(audio
|
| 81 |
if audio is None:
|
| 82 |
return gr.update(value="### <i style='color:yellow'>Processing audio, please wait ...</i>", visible=True)
|
| 83 |
return gr.update(value="", visible=False)
|
|
@@ -98,7 +98,7 @@ def gui():
|
|
| 98 |
converted_audio = gr.Audio(type="numpy", label="Converted Speech", show_share_button=False)
|
| 99 |
|
| 100 |
|
| 101 |
-
audio_input.stop(stop_recording_info, inputs=[audio_input
|
| 102 |
|
| 103 |
audio_input.change(enable_convert_button, inputs=[audio_input], outputs=[convert_button, info])
|
| 104 |
|
|
|
|
| 77 |
def clear_components():
|
| 78 |
return None, None
|
| 79 |
|
| 80 |
+
def stop_recording_info(audio):
|
| 81 |
if audio is None:
|
| 82 |
return gr.update(value="### <i style='color:yellow'>Processing audio, please wait ...</i>", visible=True)
|
| 83 |
return gr.update(value="", visible=False)
|
|
|
|
| 98 |
converted_audio = gr.Audio(type="numpy", label="Converted Speech", show_share_button=False)
|
| 99 |
|
| 100 |
|
| 101 |
+
audio_input.stop(stop_recording_info, inputs=[audio_input], outputs=[info])
|
| 102 |
|
| 103 |
audio_input.change(enable_convert_button, inputs=[audio_input], outputs=[convert_button, info])
|
| 104 |
|