ASesYusuf1 commited on
Commit
a61bfc6
ยท
verified ยท
1 Parent(s): e0ac733

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -339,7 +339,7 @@ def download_audio(url, cookie_file=None):
339
  download_url = f'https://drive.google.com/uc?id={file_id}'
340
  temp_output_path = 'ytdl/gdrive_temp_audio'
341
  gdown.download(download_url, temp_output_path, quiet=False)
342
- if not os.path.exists(temp_output_path):
343
  return None, "Downloaded file not found", None
344
  output_path = 'ytdl/gdrive_audio.wav'
345
  try:
@@ -664,7 +664,7 @@ def create_interface():
664
  with gr.Blocks(title="๐ŸŽต SESA Fast Separation ๐ŸŽต", css=CSS, elem_id="app-container") as app:
665
  gr.Markdown("<h1 class='header-text'>๐ŸŽต SESA Fast Separation ๐ŸŽต</h1>")
666
  gr.Markdown("**Note**: If YouTube downloads fail, upload a valid cookies file or a local WAV file. [Cookie Instructions](https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies)")
667
- gr.Markdown("**Tip**: For best results, use audio shorter than 15 minutes or fewer models (up to 6) to ensure smooth processing.")
668
  with gr.Tabs():
669
  with gr.Tab("โš™๏ธ Settings"):
670
  with gr.Group(elem_classes="dubbing-theme"):
@@ -721,7 +721,7 @@ def create_interface():
721
  ensemble_weights = gr.Textbox(label="โš–๏ธ Weights", placeholder="e.g., 1.0, 1.0, 1.0 (comma-separated)", interactive=True)
722
  ensemble_button = gr.Button("๐ŸŽ›๏ธ Run Ensemble!", variant="primary")
723
  ensemble_output = gr.Audio(label="๐ŸŽถ Ensemble Result", type="filepath", interactive=False)
724
- ensemble_status = gr.Textbox(label="๐Ÿ“ข Status", interactive=False, render_markdown=True)
725
  ensemble_files = gr.File(label="๐Ÿ“ฅ Download Ensemble and Stems", interactive=False)
726
  gr.HTML("<div class='footer'>Powered by Audio-Separator ๐ŸŒŸ๐ŸŽถ | Made with โค๏ธ</div>")
727
  roformer_category.change(update_roformer_models, inputs=[roformer_category], outputs=[roformer_model])
 
339
  download_url = f'https://drive.google.com/uc?id={file_id}'
340
  temp_output_path = 'ytdl/gdrive_temp_audio'
341
  gdown.download(download_url, temp_output_path, quiet=False)
342
+ if not os.os.path.exists(temp_output_path):
343
  return None, "Downloaded file not found", None
344
  output_path = 'ytdl/gdrive_audio.wav'
345
  try:
 
664
  with gr.Blocks(title="๐ŸŽต SESA Fast Separation ๐ŸŽต", css=CSS, elem_id="app-container") as app:
665
  gr.Markdown("<h1 class='header-text'>๐ŸŽต SESA Fast Separation ๐ŸŽต</h1>")
666
  gr.Markdown("**Note**: If YouTube downloads fail, upload a valid cookies file or a local WAV file. [Cookie Instructions](https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies)")
667
+ gr.Markdown("**Tip**: For่ง†่ฎฏ For best results, use audio shorter than 15 minutes or fewer models (up to 6) to ensure smooth processing.")
668
  with gr.Tabs():
669
  with gr.Tab("โš™๏ธ Settings"):
670
  with gr.Group(elem_classes="dubbing-theme"):
 
721
  ensemble_weights = gr.Textbox(label="โš–๏ธ Weights", placeholder="e.g., 1.0, 1.0, 1.0 (comma-separated)", interactive=True)
722
  ensemble_button = gr.Button("๐ŸŽ›๏ธ Run Ensemble!", variant="primary")
723
  ensemble_output = gr.Audio(label="๐ŸŽถ Ensemble Result", type="filepath", interactive=False)
724
+ ensemble_status = gr.HTML(label="๐Ÿ“ข Status", interactive=False)
725
  ensemble_files = gr.File(label="๐Ÿ“ฅ Download Ensemble and Stems", interactive=False)
726
  gr.HTML("<div class='footer'>Powered by Audio-Separator ๐ŸŒŸ๐ŸŽถ | Made with โค๏ธ</div>")
727
  roformer_category.change(update_roformer_models, inputs=[roformer_category], outputs=[roformer_model])