Spaces:
Running
on
L40S
Running
on
L40S
hainazhu
commited on
Commit
·
b25cf95
1
Parent(s):
ef01ecd
fix typo
Browse files
app.py
CHANGED
@@ -73,11 +73,11 @@ def generate_song(description, lyric, prompt_audio=None, cfg_coef=None, temperat
|
|
73 |
print(f"Lyrics provided: {lyric}")
|
74 |
|
75 |
# 适配lyric格式
|
76 |
-
lyric = lyric.
|
77 |
for s in STRUCTS:
|
78 |
-
lyric = lyric.
|
79 |
-
lyric = lyric.
|
80 |
-
lyric = lyric.
|
81 |
|
82 |
# 适配prompt
|
83 |
if prompt_audio is not None:
|
|
|
73 |
print(f"Lyrics provided: {lyric}")
|
74 |
|
75 |
# 适配lyric格式
|
76 |
+
lyric = lyric.replace("\n\n", " ; ")
|
77 |
for s in STRUCTS:
|
78 |
+
lyric = lyric.replace(f"{s}\n", f"{s} ")
|
79 |
+
lyric = lyric.replace("\n", "")
|
80 |
+
lyric = lyric.replace(". ; ", " ; ")
|
81 |
|
82 |
# 适配prompt
|
83 |
if prompt_audio is not None:
|