Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -27,6 +27,7 @@ from tabs.tts.tts import tts_tab
|
|
27 |
from tabs.voice_blender.voice_blender import voice_blender_tab
|
28 |
from tabs.plugins.plugins import plugins_tab
|
29 |
from tabs.settings.settings import settings_tab
|
|
|
30 |
|
31 |
# Run prerequisites
|
32 |
from core import run_prerequisites_script
|
@@ -94,89 +95,26 @@ def process_model_data(json_data):
|
|
94 |
model_download_pipeline(zip_url)
|
95 |
except json.JSONDecodeError as e:
|
96 |
print(f"JSON解析エラー: {e}")
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
["v1", "yoimiya-jp", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v1/yoimiya-jp%20100%20epochs%2040k.zip", "https://static.wikia.nocookie.net/gensin-impact/images/8/89/Character_Yoimiya_Full_Wish.png"],
|
118 |
-
["v1", "zhongli-jp", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v1/zhongli-jp%20100%20epochs%2040k.zip", "https://static.wikia.nocookie.net/gensin-impact/images/c/c4/Character_Zhongli_Full_Wish.png"],
|
119 |
-
["v2", "aether-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/aether-jp%20100%20epochs%2048k%20v2.zip", "https://arkandash-rvc-genshin-impact.hf.space/file/weights/Main%20Character/aether-jp/cover.png"],
|
120 |
-
["v2", "albedo-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/albedo-jp%20110%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/5/51/Character_Albedo_Full_Wish.png"],
|
121 |
-
["v2", "alhaitam-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/alhaitam-jp%20100%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/e/e4/Character_Alhaitham_Full_Wish.png"],
|
122 |
-
["v2", "amber-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/amber-jp%20102%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/1/1c/Character_Amber_Full_Wish.png"],
|
123 |
-
["v2", "ayaka-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/ayaka-jp%20101%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/d/d0/Character_Kamisato_Ayaka_Full_Wish.png"],
|
124 |
-
["v2", "barbara-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/barbara-jp%20100%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/7/76/Character_Barbara_Full_Wish.png"],
|
125 |
-
["v2", "bennett-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/bennett-jp%20104%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/2/27/Character_Bennett_Full_Wish.png"],
|
126 |
-
["v2", "charlotte-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/charlotte-jp%20400%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/b/bf/Charlotte_Card.png"],
|
127 |
-
["v2", "chongyun-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/chongyun-jp%20104%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/9/95/Character_Chongyun_Full_Wish.png"],
|
128 |
-
["v2", "cyno-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/cyno-jp%20100%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/5/55/Character_Cyno_Full_Wish.png"],
|
129 |
-
["v2", "dehya-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/dehya-jp%20100%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/3/35/Character_Dehya_Full_Wish.png"],
|
130 |
-
["v2", "diona-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/diona-jp%20105%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/4/4e/Character_Diona_Full_Wish.png"],
|
131 |
-
["v2", "dori-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/dori-jp%20208%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/4/48/Character_Dori_Full_Wish.png"],
|
132 |
-
["v2", "faruzan-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/faruzan-jp%20100%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/a/a3/Character_Faruzan_Full_Wish.png"],
|
133 |
-
["v2", "furina-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/furina-jp%20275%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/2/27/Furina_Card.png"],
|
134 |
-
["v2", "greaterLordRukkhadevata-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/greaterLordRukkhadevata-jp%20750%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/5/54/NPC_Greater_Lord_Rukkhadevata.png"],
|
135 |
-
["v2", "itto-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/itto-jp%20100%20epochs%2040k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/c/c3/Character_Arataki_Itto_Full_Wish.png"],
|
136 |
-
["v2", "jean-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/jean-jp%20155%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/d/d6/Character_Jean_Full_Wish.png"],
|
137 |
-
["v2", "kaveh-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/kaveh-jp%20100%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/c/c2/Character_Kaveh_Full_Wish.png"],
|
138 |
-
["v2", "kazuha-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/kazuha-jp%20100%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/5/57/Character_Kaedehara_Kazuha_Full_Wish.png"],
|
139 |
-
["v2", "kuki-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/kuki-jp%20101%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/1/1f/Character_Kuki_Shinobu_Full_Wish.png"],
|
140 |
-
["v2", "lisa-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/lisa-jp%20104%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/5/53/Character_Lisa_Full_Wish.png"],
|
141 |
-
["v2", "lumine-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/lumine-jp%20700%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/fanfiction/images/b/bf/Lumine_Genshin_Impact.png"],
|
142 |
-
["v2", "lynette-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/lynette-jp%20307%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/c/ce/Character_Lynette_Full_Wish.png"],
|
143 |
-
["v2", "lyney-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/lyney-jp%20101%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/a/a3/Character_Lyney_Full_Wish.png"],
|
144 |
-
["v2", "nahida-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/nahida-jp%20102%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/d/dd/Character_Nahida_Full_Wish.png"],
|
145 |
-
["v2", "navia-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/navia-jp%20114%20epochs%2048k%20v2.zip", "https://genshin.ch/templates/assets/img/avatar_icons/a091_gacha_splash.webp"],
|
146 |
-
["v2", "neuvillette-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/neuvillette-jp%20105%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/5/5e/Character_Neuvillette_Full_Wish.png"],
|
147 |
-
["v2", "nilou-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/nilou-jp%20102%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/6/61/Character_Nilou_Full_Wish.png"],
|
148 |
-
["v2", "ningguang-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/ningguang-jp%20103%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/3/3a/Character_Ningguang_Full_Wish.png"],
|
149 |
-
["v2", "noelle-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/noelle-jp%20101%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/0/08/Character_Noelle_Full_Wish.png"],
|
150 |
-
["v2", "paimon-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/paimon-jp%20105%20epochs%2048k%20v2.zip", "https://i.pinimg.com/736x/4f/43/9d/4f439ded724bb92079f820d133a31ed6.jpg"],
|
151 |
-
["v2", "qiqi-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/qiqi-jp%20409%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/f/fd/Character_Qiqi_Full_Wish.png"],
|
152 |
-
["v2", "raiden-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/raiden-jp%20104%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/a/a3/Character_Raiden_Shogun_Full_Wish.png"],
|
153 |
-
["v2", "razor-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/razor-jp%20303%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/d/d5/Character_Razor_Full_Wish.png"],
|
154 |
-
["v2", "rosaria-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/rosaria-jp%20500%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/9/9b/Character_Rosaria_Full_Wish.png"],
|
155 |
-
["v2", "sara-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/sara-jp%20208%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/6/69/Character_Kujou_Sara_Full_Wish.png"],
|
156 |
-
["v2", "shenhe-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/shenhe-jp%20125%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/4/49/Character_Shenhe_Full_Wish.png"],
|
157 |
-
["v2", "sigewinne-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/sigewinne-jp%20307%20epochs%2048k%20v2.zip", "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSh7bewy5bbESdQe_jRTzPnXDlkP_MgZTcJ7Q&s"],
|
158 |
-
["v2", "signora-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/signora-jp%201k%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/villainous-benchmark/images/8/83/Signora.webp"],
|
159 |
-
["v2", "sucrose-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/sucrose-jp%20104%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/9/9e/Character_Sucrose_Full_Wish.png"],
|
160 |
-
["v2", "tartaglia-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/tartaglia-jp%20103%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/a/af/Character_Tartaglia_Full_Wish.png"],
|
161 |
-
["v2", "venti-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/venti-jp%20100%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/2/2d/Character_Venti_Full_Wish.png"],
|
162 |
-
["v2", "wriothesley-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/wriothesley-jp%20101%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/5/50/Character_Wriothesley_Full_Wish.png"],
|
163 |
-
["v2", "xiao-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/xiao-jp%20100%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/5/5d/Character_Xiao_Full_Wish.png"],
|
164 |
-
["v2", "yanfei-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/yanfei-jp%20107%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/b/b3/Character_Yanfei_Full_Wish.png"],
|
165 |
-
["v2", "zhongli-jp-v2", "https://huggingface.co/ArkanDash/rvc-genshin-impact/resolve/main/prezipped/v2/zhongli-jp%20102%20epochs%2048k%20v2.zip", "https://static.wikia.nocookie.net/gensin-impact/images/c/c4/Character_Zhongli_Full_Wish.png"],
|
166 |
-
["v2", "emilie-jp-v2", "https://huggingface.co/RegalHyperus/MiscellaneousRVCModels/resolve/main/EmilieGIJP.zip","https://static.wikia.nocookie.net/gensin-impact/images/c/c8/Character_Emilie_Full_Wish.png"],
|
167 |
-
["v2", "chaska-jp-v2", "https://huggingface.co/RegalHyperus/MiscellaneousRVCModels/resolve/main/ChascaGIJP.zip", "https://static.wikia.nocookie.net/gensin-impact/images/8/8c/Character_Chasca_Full_Wish.png"],
|
168 |
-
["v2", "kachina-jp-v2", "https://huggingface.co/RegalHyperus/MiscellaneousRVCModels/resolve/main/KachinaGIJP.zip", "https://static.wikia.nocookie.net/gensin-impact/images/9/90/Character_Kachina_Full_Wish.png"],
|
169 |
-
["v2", "kinichi-jp-v2", "https://huggingface.co/RegalHyperus/MiscellaneousRVCModels/resolve/main/KinichGIJP.zip", "https://static.wikia.nocookie.net/gensin-impact/images/9/95/Character_Kinich_Full_Wish.png"],
|
170 |
-
["v2", "clorinde-jp-v2", "https://huggingface.co/GIyph/RVC2/blob/main/ClorindeEN5.0_200e_29000s.zip", "https://static.wikia.nocookie.net/gensin-impact/images/8/87/Character_Clorinde_Full_Wish.png"],
|
171 |
-
["v2", "mualani-jp-v2", "https://huggingface.co/notiscBalbalEko/myrvcmodel/resolve/main/MualaniEN_990e_9900s.zip", "https://static.wikia.nocookie.net/gensin-impact/images/a/a4/Character_Mualani_Full_Wish.png"],
|
172 |
-
["v2", "candace-jp-v2", "https://huggingface.co/GIyph/RVC2/blob/main/CandaceEN2.6_170e_11730s.zip", "https://static.wikia.nocookie.net/gensin-impact/images/7/79/Character_Candace_Full_Wish.png"],
|
173 |
-
["v2", "sethos-jp-v2", "https://huggingface.co/RegalHyperus/MiscellaneousRVCModels/resolve/main/SethosGIJP.zip", "https://static.wikia.nocookie.net/gensin-impact/images/7/7b/Character_Sethos_Full_Wish.png"],
|
174 |
-
["v2", "gorou-jp-v2", "https://huggingface.co/RegalHyperus/MiscellaneousRVCModels/resolve/main/GorouGIJP.zip", "https://static.wikia.nocookie.net/gensin-impact/images/d/d1/Character_Gorou_Full_Wish.png"],
|
175 |
-
["v2", "yip-gaming-jp-v2", "https://huggingface.co/RegalHyperus/MiscellaneousRVCModels/resolve/main/GamingGIJPV3.zip", "https://static.wikia.nocookie.net/gensin-impact/images/c/c7/Character_Gaming_Full_Wish.png"],
|
176 |
-
["v2", "Arlecchino-jp-v2", "https://huggingface.co/riezzz/rvc-models/resolve/main/arlecchino-pth-300.zip", "https://static.wikia.nocookie.net/gensin-impact/images/f/f8/Character_Arlecchino_Full_Wish.png"],
|
177 |
-
["alice", "alice", "https://huggingface.co/LordDavis778/BlueArchivevoicemodels/resolve/main/TendouAlice.zip", "https://bluearchive.wikiru.jp/attach2/E382A2E383AAE382B9_E382A2E383AAE382B95FE7AB8BE381A1E7B5B530312E706E67.png"]
|
178 |
-
]
|
179 |
-
}'''
|
180 |
|
181 |
process_model_data(json_data)
|
182 |
|
|
|
27 |
from tabs.voice_blender.voice_blender import voice_blender_tab
|
28 |
from tabs.plugins.plugins import plugins_tab
|
29 |
from tabs.settings.settings import settings_tab
|
30 |
+
import json
|
31 |
|
32 |
# Run prerequisites
|
33 |
from core import run_prerequisites_script
|
|
|
95 |
model_download_pipeline(zip_url)
|
96 |
except json.JSONDecodeError as e:
|
97 |
print(f"JSON解析エラー: {e}")
|
98 |
+
|
99 |
+
import requests
|
100 |
+
|
101 |
+
|
102 |
+
def fetch_json_data():
|
103 |
+
url = "https://huggingface.co/datasets/public-soiz1/genshin-applio-rvc-data/raw/main/data.json"
|
104 |
+
response = requests.get(url)
|
105 |
+
if response.status_code == 200:
|
106 |
+
try:
|
107 |
+
json_data = response.json() # JSONとしてパース
|
108 |
+
return json_data
|
109 |
+
except json.JSONDecodeError:
|
110 |
+
print("JSONデコードエラー: 正しいJSON形式ではありません。")
|
111 |
+
return None
|
112 |
+
else:
|
113 |
+
print(f"エラー: ステータスコード {response.status_code}")
|
114 |
+
return None
|
115 |
+
|
116 |
+
# 関数を呼び出してデータを取得
|
117 |
+
json_data = fetch_json_data()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
|
119 |
process_model_data(json_data)
|
120 |
|