SefyanKehail commited on
Commit ·
e9e0fe0
1
Parent(s): c4cd78b
added progress instead of spinner
Browse files- app.py +2 -3
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -93,16 +93,15 @@ with gr.Blocks() as interface:
|
|
| 93 |
converted_audio = gr.Audio(type="numpy", label="Converted Speech")
|
| 94 |
|
| 95 |
|
|
|
|
| 96 |
|
| 97 |
audio_input.change(enable_convert_button, inputs=[audio_input], outputs=[convert_button, info])
|
| 98 |
|
| 99 |
-
audio_input.stop_recording(stop_recording_info, inputs=[audio_input, info], outputs=[info])
|
| 100 |
-
|
| 101 |
convert_button.click(convert_speech, inputs=[audio_input], outputs=[converted_audio])
|
| 102 |
|
| 103 |
audio_input.clear(clear_components, inputs=None, outputs=[audio_input, converted_audio])
|
| 104 |
|
| 105 |
-
audio_input.change(enable_convert_button, inputs=[audio_input], outputs=[convert_button, info])
|
| 106 |
|
| 107 |
interface.launch(debug=False)
|
| 108 |
|
|
|
|
| 93 |
converted_audio = gr.Audio(type="numpy", label="Converted Speech")
|
| 94 |
|
| 95 |
|
| 96 |
+
audio_input.stop_recording(stop_recording_info, inputs=[audio_input, info], outputs=[info])
|
| 97 |
|
| 98 |
audio_input.change(enable_convert_button, inputs=[audio_input], outputs=[convert_button, info])
|
| 99 |
|
|
|
|
|
|
|
| 100 |
convert_button.click(convert_speech, inputs=[audio_input], outputs=[converted_audio])
|
| 101 |
|
| 102 |
audio_input.clear(clear_components, inputs=None, outputs=[audio_input, converted_audio])
|
| 103 |
|
| 104 |
+
# audio_input.change(enable_convert_button, inputs=[audio_input], outputs=[convert_button, info])
|
| 105 |
|
| 106 |
interface.launch(debug=False)
|
| 107 |
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
torch
|
| 3 |
torchaudio
|
| 4 |
requests
|
|
|
|
| 1 |
+
gradio==4.17.0
|
| 2 |
torch
|
| 3 |
torchaudio
|
| 4 |
requests
|