Googlefan
commited on
Commit
·
590ca89
1
Parent(s):
a58b40e
refactor(app.py): remove redundant style vector retrieval
Browse files
app.py
CHANGED
@@ -22,8 +22,7 @@ def load_and_synthesize(text: str, path: str, sdp: float = 0.0, speed: float = 1
|
|
22 |
repo_id = "/".join(path[:-1])
|
23 |
model.load_sbv2file_from_path(uid, hf_hub_download(repo_id, filename))
|
24 |
print("All setup is done!")
|
25 |
-
|
26 |
-
return model.synthesize(text, uid, style_vector, sdp, 1.0 / speed)
|
27 |
|
28 |
|
29 |
iface = gr.Interface(
|
|
|
22 |
repo_id = "/".join(path[:-1])
|
23 |
model.load_sbv2file_from_path(uid, hf_hub_download(repo_id, filename))
|
24 |
print("All setup is done!")
|
25 |
+
return model.synthesize(text, uid, 0, sdp, 1.0 / speed)
|
|
|
26 |
|
27 |
|
28 |
iface = gr.Interface(
|