Spaces:
Running
Running
Mahiruoshi
commited on
Commit
•
e5659ed
1
Parent(s):
26c52ff
Update app.py
Browse files
app.py
CHANGED
@@ -205,10 +205,10 @@ def loadmodel(model):
|
|
205 |
if __name__ == "__main__":
|
206 |
languages = [ "Auto", "ZH", "JP"]
|
207 |
modelPaths = []
|
208 |
-
for dirpath, dirnames, filenames in os.walk('Data/
|
209 |
for filename in filenames:
|
210 |
modelPaths.append(os.path.join(dirpath, filename))
|
211 |
-
hps = utils.get_hparams_from_file('Data/
|
212 |
net_g = get_net_g(
|
213 |
model_path=modelPaths[-1], device=device, hps=hps
|
214 |
)
|
|
|
205 |
if __name__ == "__main__":
|
206 |
languages = [ "Auto", "ZH", "JP"]
|
207 |
modelPaths = []
|
208 |
+
for dirpath, dirnames, filenames in os.walk('Data/BangDream/models/'):
|
209 |
for filename in filenames:
|
210 |
modelPaths.append(os.path.join(dirpath, filename))
|
211 |
+
hps = utils.get_hparams_from_file('Data/BangDream/configs/config.json')
|
212 |
net_g = get_net_g(
|
213 |
model_path=modelPaths[-1], device=device, hps=hps
|
214 |
)
|