Politrees commited on
Commit
5ec2fe9
·
verified ·
1 Parent(s): a848d37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -4,7 +4,7 @@ import shutil
4
  import logging
5
  import gradio as gr
6
 
7
- from PolUVR.separator import Separator
8
 
9
  device = "cuda" if torch.cuda.is_available() else "cpu"
10
  use_autocast = device == "cuda"
@@ -124,7 +124,7 @@ def print_message(input_file, model_name):
124
  """Prints information about the audio separation process."""
125
  base_name = os.path.splitext(os.path.basename(input_file))[0]
126
  print("\n")
127
- print("🎵 PolUVR 🎵")
128
  print("Input audio:", base_name)
129
  print("Separation Model:", model_name)
130
  print("Audio Separation Process...")
@@ -344,14 +344,14 @@ def update_stems(model):
344
  return gr.update(visible=False)
345
 
346
  with gr.Blocks(
347
- title="🎵 PolUVR 🎵",
348
  css="footer{display:none !important}",
349
  theme=gr.themes.Default(
350
  spacing_size="sm",
351
  radius_size="lg",
352
  )
353
  ) as app:
354
- gr.HTML("<h1> 🎵 PolUVR 🎵 </h1>")
355
 
356
  with gr.Tab("Roformer"):
357
  with gr.Group():
 
4
  import logging
5
  import gradio as gr
6
 
7
+ from audio_separator.separator import Separator
8
 
9
  device = "cuda" if torch.cuda.is_available() else "cpu"
10
  use_autocast = device == "cuda"
 
124
  """Prints information about the audio separation process."""
125
  base_name = os.path.splitext(os.path.basename(input_file))[0]
126
  print("\n")
127
+ print("🎵 Audio Separator 🎵")
128
  print("Input audio:", base_name)
129
  print("Separation Model:", model_name)
130
  print("Audio Separation Process...")
 
344
  return gr.update(visible=False)
345
 
346
  with gr.Blocks(
347
+ title="🎵 Audio Separator 🎵",
348
  css="footer{display:none !important}",
349
  theme=gr.themes.Default(
350
  spacing_size="sm",
351
  radius_size="lg",
352
  )
353
  ) as app:
354
+ gr.HTML("<h1> 🎵 Audio Separator 🎵 </h1>")
355
 
356
  with gr.Tab("Roformer"):
357
  with gr.Group():