Hev832 commited on
Commit
b990d66
·
verified ·
1 Parent(s): 04e3761

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -169,7 +169,7 @@ def upload_to_huggingface(zip_file, repo_id, hf_token):
169
  return f"File uploaded to {repo_id}/{os.path.basename(zip_file)}"
170
 
171
  # Gradio interface
172
- def process_audio(url, audio_name, hf_token, repo_id):
173
  file_path = download_youtube_audio(url, audio_name)
174
  dataset_path = slice_audio(file_path, audio_name)
175
  zip_file = zip_directory(dataset_path, audio_name)
@@ -202,8 +202,9 @@ with gr.Blocks() as demo:
202
  with gr.Row():
203
  hf_token_input = gr.Textbox(label="Hugging Face Token")
204
  repo_id_input = gr.Textbox(label="Repository ID")
205
- push_hub = gr.Button("Hugging Face Upload")
206
- upload_output = gr.Textbox(label="Hugging Face Upload Status")
 
207
  with gr.Row():
208
  result_output = gr.File(label="Download Sliced Audio Zip")
209
  with gr.Row():
 
169
  return f"File uploaded to {repo_id}/{os.path.basename(zip_file)}"
170
 
171
  # Gradio interface
172
+ def process_audio(url, audio_name):
173
  file_path = download_youtube_audio(url, audio_name)
174
  dataset_path = slice_audio(file_path, audio_name)
175
  zip_file = zip_directory(dataset_path, audio_name)
 
202
  with gr.Row():
203
  hf_token_input = gr.Textbox(label="Hugging Face Token")
204
  repo_id_input = gr.Textbox(label="Repository ID")
205
+ with gr.Row():
206
+ push_hub = gr.Button("Hugging Face Upload")
207
+ upload_output = gr.Textbox(label="Hugging Face Upload Status")
208
  with gr.Row():
209
  result_output = gr.File(label="Download Sliced Audio Zip")
210
  with gr.Row():