Rejekts commited on
Commit
a03fefd
1 Parent(s): 266a456

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,12 +1,13 @@
1
  import gradio as gr
2
  import os, shutil
3
  import subprocess
4
-
5
  os.environ["rmvpe_root"] = "assets/rmvpe"
6
  os.environ['index_root']="logs"
7
  os.environ['weight_root']="assets/weights"
8
 
9
  def convert(audio_picker,model_picker):
 
10
  command = [
11
  "python",
12
  "tools/infer_cli.py",
@@ -14,11 +15,10 @@ def convert(audio_picker,model_picker):
14
  "--input_path", f"audios/{audio_picker}",
15
  "--index_path", f"logs/{model_picker}/*.index",
16
  "--f0method", "rmvpe",
17
- "--opt_path", "cli_output.wav",
18
  "--model_name", f"{model_picker}",
19
  "--index_rate", "0.8",
20
  "--device", "cpu",
21
- "--is_half", "False",
22
  "--filter_radius", "3",
23
  "--resample_sr", "0",
24
  "--rms_mix_rate", "0.21",
 
1
  import gradio as gr
2
  import os, shutil
3
  import subprocess
4
+ from datetime import datetime
5
  os.environ["rmvpe_root"] = "assets/rmvpe"
6
  os.environ['index_root']="logs"
7
  os.environ['weight_root']="assets/weights"
8
 
9
  def convert(audio_picker,model_picker):
10
+ now = datetime.now().strftime("%d%m%Y%H%M%S")
11
  command = [
12
  "python",
13
  "tools/infer_cli.py",
 
15
  "--input_path", f"audios/{audio_picker}",
16
  "--index_path", f"logs/{model_picker}/*.index",
17
  "--f0method", "rmvpe",
18
+ "--opt_path", f"audios/cli_output_{now}.wav",
19
  "--model_name", f"{model_picker}",
20
  "--index_rate", "0.8",
21
  "--device", "cpu",
 
22
  "--filter_radius", "3",
23
  "--resample_sr", "0",
24
  "--rms_mix_rate", "0.21",