Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -199,13 +199,14 @@ with gr.Blocks() as demo:
|
|
199 |
repo_id_input = gr.Textbox(label="Repository ID")
|
200 |
push_hub = gr.Button("Hugging Face Upload")
|
201 |
upload_output = gr.Textbox(label="Hugging Face Upload Status")
|
202 |
-
push_hub.click(fn=process_audio, inputs=[result_output, hf_token_input, repo_id_input], outputs=[upload_output])
|
203 |
with gr.Row():
|
204 |
result_output = gr.File(label="Download Sliced Audio Zip")
|
205 |
with gr.Row():
|
206 |
run_button = gr.Button("Download and Slice Audio")
|
207 |
run_button.click(fn=process_audio, inputs=[url_input, audio_name_input, hf_token_input, repo_id_input], outputs=[result_output])
|
208 |
-
|
|
|
|
|
209 |
|
210 |
|
211 |
demo.launch()
|
|
|
199 |
repo_id_input = gr.Textbox(label="Repository ID")
|
200 |
push_hub = gr.Button("Hugging Face Upload")
|
201 |
upload_output = gr.Textbox(label="Hugging Face Upload Status")
|
|
|
202 |
with gr.Row():
|
203 |
result_output = gr.File(label="Download Sliced Audio Zip")
|
204 |
with gr.Row():
|
205 |
run_button = gr.Button("Download and Slice Audio")
|
206 |
run_button.click(fn=process_audio, inputs=[url_input, audio_name_input, hf_token_input, repo_id_input], outputs=[result_output])
|
207 |
+
|
208 |
+
|
209 |
+
push_hub.click(fn=process_audio, inputs=[result_output, hf_token_input, repo_id_input], outputs=[upload_output])
|
210 |
|
211 |
|
212 |
demo.launch()
|