Spaces:
Running
on
L40S
Running
on
L40S
root
commited on
Commit
·
d01af32
1
Parent(s):
9804a4c
update medium lyric
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ from levo_inference import LeVoInference
|
|
| 23 |
MODEL = LeVoInference(base_full_path)
|
| 24 |
|
| 25 |
EXAMPLE_LYRICS = """
|
| 26 |
-
[intro-
|
| 27 |
|
| 28 |
[verse]
|
| 29 |
夜晚的街灯闪烁
|
|
@@ -34,6 +34,18 @@ EXAMPLE_LYRICS = """
|
|
| 34 |
那些曾经的甜蜜
|
| 35 |
如今只剩我独自回忆
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
[verse]
|
| 38 |
手机屏幕亮起
|
| 39 |
是你发来的消息
|
|
@@ -54,7 +66,7 @@ EXAMPLE_LYRICS = """
|
|
| 54 |
没有你的日子
|
| 55 |
我该如何继续向前
|
| 56 |
|
| 57 |
-
[outro-
|
| 58 |
""".strip()
|
| 59 |
|
| 60 |
with open(op.join(APP_DIR, 'conf/vocab.yaml'), 'r', encoding='utf-8') as file:
|
|
@@ -160,9 +172,9 @@ lyrics
|
|
| 160 |
with gr.Tabs(elem_id="extra-tabs"):
|
| 161 |
with gr.Tab("Genre Select"):
|
| 162 |
genre = gr.Radio(
|
| 163 |
-
choices=["Pop", "R&B", "Dance", "Jazz", "Folk", "Rock", "Chinese Style", "Chinese Tradition", "Metal", "Reggae", "Chinese Opera"
|
| 164 |
label="Genre Select(Optional)",
|
| 165 |
-
value="
|
| 166 |
interactive=True,
|
| 167 |
elem_id="single-select-radio"
|
| 168 |
)
|
|
|
|
| 23 |
MODEL = LeVoInference(base_full_path)
|
| 24 |
|
| 25 |
EXAMPLE_LYRICS = """
|
| 26 |
+
[intro-medium]
|
| 27 |
|
| 28 |
[verse]
|
| 29 |
夜晚的街灯闪烁
|
|
|
|
| 34 |
那些曾经的甜蜜
|
| 35 |
如今只剩我独自回忆
|
| 36 |
|
| 37 |
+
[chorus]
|
| 38 |
+
回忆的温度还在
|
| 39 |
+
你却已不在
|
| 40 |
+
我的心被爱填满
|
| 41 |
+
却又被思念刺痛
|
| 42 |
+
音乐的节奏奏响
|
| 43 |
+
我的心却在流浪
|
| 44 |
+
没有你的日子
|
| 45 |
+
我该如何继续向前
|
| 46 |
+
|
| 47 |
+
[inst-medium]
|
| 48 |
+
|
| 49 |
[verse]
|
| 50 |
手机屏幕亮起
|
| 51 |
是你发来的消息
|
|
|
|
| 66 |
没有你的日子
|
| 67 |
我该如何继续向前
|
| 68 |
|
| 69 |
+
[outro-medium]
|
| 70 |
""".strip()
|
| 71 |
|
| 72 |
with open(op.join(APP_DIR, 'conf/vocab.yaml'), 'r', encoding='utf-8') as file:
|
|
|
|
| 172 |
with gr.Tabs(elem_id="extra-tabs"):
|
| 173 |
with gr.Tab("Genre Select"):
|
| 174 |
genre = gr.Radio(
|
| 175 |
+
choices=["Auto", "Pop", "R&B", "Dance", "Jazz", "Folk", "Rock", "Chinese Style", "Chinese Tradition", "Metal", "Reggae", "Chinese Opera"],
|
| 176 |
label="Genre Select(Optional)",
|
| 177 |
+
value="Auto",
|
| 178 |
interactive=True,
|
| 179 |
elem_id="single-select-radio"
|
| 180 |
)
|