nateraw commited on
Commit
cf12f57
1 Parent(s): 7fc71d5

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -19,19 +19,26 @@ from so_vits_svc_fork.inference.core import Svc
19
  ###################################################################
20
  # The Hugging Face Hub repo ID
21
  repo_id = "dog/kanye"
 
22
  # If None, Uses latest ckpt in the repo
23
  ckpt_name = None
 
24
  # If None, Uses "kmeans.pt" if it exists in the repo
25
  cluster_model_name = None
 
26
  # Set the default f0 type to use - use the one it was trained on.
27
  # The default for so-vits-svc-fork is "dio".
28
  # Options: "crepe", "crepe-tiny", "parselmouth", "dio", "harvest"
29
  default_f0_method = "crepe"
 
30
  # The default ratio of cluster inference to SVC inference.
31
  # If cluster_model_name is not found in the repo, this is set to 0.
32
  default_cluster_infer_ratio = 0.5
 
33
  # Limit on duration of audio at inference time. increase if you can
34
- duration_limit = 30
 
 
35
  ###################################################################
36
 
37
  # Figure out the latest generator by taking highest value one.
 
19
  ###################################################################
20
  # The Hugging Face Hub repo ID
21
  repo_id = "dog/kanye"
22
+
23
  # If None, Uses latest ckpt in the repo
24
  ckpt_name = None
25
+
26
  # If None, Uses "kmeans.pt" if it exists in the repo
27
  cluster_model_name = None
28
+
29
  # Set the default f0 type to use - use the one it was trained on.
30
  # The default for so-vits-svc-fork is "dio".
31
  # Options: "crepe", "crepe-tiny", "parselmouth", "dio", "harvest"
32
  default_f0_method = "crepe"
33
+
34
  # The default ratio of cluster inference to SVC inference.
35
  # If cluster_model_name is not found in the repo, this is set to 0.
36
  default_cluster_infer_ratio = 0.5
37
+
38
  # Limit on duration of audio at inference time. increase if you can
39
+ # In this parent app, we set the limit with an env var to 30 seconds
40
+ # If you didnt set env var + you go OOM try changing 9e9 to <=300ish
41
+ duration_limit = int(os.environ.get("MAX_DURATION_SECONDS", 9e9))
42
  ###################################################################
43
 
44
  # Figure out the latest generator by taking highest value one.