Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -109,6 +109,7 @@ if __name__ == '__main__':
|
|
109 |
parser.add_argument('--device', type=str, default='cpu')
|
110 |
parser.add_argument('--api', action="store_true", default=False)
|
111 |
parser.add_argument("--share", action="store_true", default=False, help="share gradio app")
|
|
|
112 |
args = parser.parse_args()
|
113 |
device = torch.device(args.device)
|
114 |
categories = ["Blue Archive", "Lycoris Recoil"]
|
@@ -118,6 +119,9 @@ if __name__ == '__main__':
|
|
118 |
"Honkai Impact 3rd": "https://huggingface.co/spaces/sayashi/vits-models-genshin-bh3",
|
119 |
"Overwatch 2": "https://huggingface.co/spaces/sayashi/vits-models-ow2",
|
120 |
}
|
|
|
|
|
|
|
121 |
models = []
|
122 |
with open("pretrained_models/info.json", "r", encoding="utf-8") as f:
|
123 |
models_info = json.load(f)
|
|
|
109 |
parser.add_argument('--device', type=str, default='cpu')
|
110 |
parser.add_argument('--api', action="store_true", default=False)
|
111 |
parser.add_argument("--share", action="store_true", default=False, help="share gradio app")
|
112 |
+
parser.add_argument("--all", action="store_true", default=False, help="enable all models")
|
113 |
args = parser.parse_args()
|
114 |
device = torch.device(args.device)
|
115 |
categories = ["Blue Archive", "Lycoris Recoil"]
|
|
|
119 |
"Honkai Impact 3rd": "https://huggingface.co/spaces/sayashi/vits-models-genshin-bh3",
|
120 |
"Overwatch 2": "https://huggingface.co/spaces/sayashi/vits-models-ow2",
|
121 |
}
|
122 |
+
if args.all:
|
123 |
+
categories = ["Blue Archive", "Lycoris Recoil", "Princess Connect! Re:Dive", "Genshin Impact", "Honkai Impact 3rd", "Overwatch 2"]
|
124 |
+
others = {}
|
125 |
models = []
|
126 |
with open("pretrained_models/info.json", "r", encoding="utf-8") as f:
|
127 |
models_info = json.load(f)
|