Kit-Lemonfoot commited on
Commit
daba275
1 Parent(s): 6a4e7a7

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -36,7 +36,6 @@ limitation = os.getenv("SYSTEM") == "spaces"
36
  language_dict = tts_order_voice
37
 
38
  authors = ["dacoolkid44", "Hijack", "Maki Ligon", "megaaziib", "KitLemonfoot", "yeey5", "Sui", "MahdeenSky"]
39
- authorskip = ["dacoolkid44 & Hijack", "dacoolkid44 & Hijack & Maki Ligon", "Kit Lemonfoot / NSHFB"]
40
 
41
  audio_mode = []
42
  f0method_mode = []
@@ -203,7 +202,7 @@ def load_model():
203
  model_index = f"weights/{category_folder}/{character_name}/{info['feature_retrieval_library']}"
204
  if info['feature_retrieval_library'] == "None":
205
  model_index = None
206
- if not (model_author in authors or model_author in authorskip):
207
  authors.append(model_author)
208
  model_path = f"weights/{category_folder}/{character_name}/{model_name}"
209
  cpt = torch.load(f"weights/{category_folder}/{character_name}/{model_name}", map_location="cpu")
 
36
  language_dict = tts_order_voice
37
 
38
  authors = ["dacoolkid44", "Hijack", "Maki Ligon", "megaaziib", "KitLemonfoot", "yeey5", "Sui", "MahdeenSky"]
 
39
 
40
  audio_mode = []
41
  f0method_mode = []
 
202
  model_index = f"weights/{category_folder}/{character_name}/{info['feature_retrieval_library']}"
203
  if info['feature_retrieval_library'] == "None":
204
  model_index = None
205
+ if not (model_author in authors or "/" in model_author or "&" in model_author):
206
  authors.append(model_author)
207
  model_path = f"weights/{category_folder}/{character_name}/{model_name}"
208
  cpt = torch.load(f"weights/{category_folder}/{character_name}/{model_name}", map_location="cpu")