Spaces:
Running
on
Zero
Running
on
Zero
Update ui/components.py
Browse files- ui/components.py +3 -2
ui/components.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
# --- 기존 코드 유지 (원본) ---
|
2 |
"""
|
3 |
ACE-Step: A Step Towards Music Generation Foundation Model
|
4 |
|
@@ -1297,10 +1296,12 @@ def create_text2music_ui(
|
|
1297 |
|
1298 |
def sample_data(lora_name_or_path_):
|
1299 |
if sample_data_func:
|
1300 |
-
|
|
|
1301 |
return json2output(json_data)
|
1302 |
return {}
|
1303 |
|
|
|
1304 |
sample_bnt.click(
|
1305 |
sample_data,
|
1306 |
inputs=[lora_name_or_path],
|
|
|
|
|
1 |
"""
|
2 |
ACE-Step: A Step Towards Music Generation Foundation Model
|
3 |
|
|
|
1296 |
|
1297 |
def sample_data(lora_name_or_path_):
|
1298 |
if sample_data_func:
|
1299 |
+
# sample_data_func는 인자를 받지 않는 메서드이므로 인자 없이 호출
|
1300 |
+
json_data = sample_data_func() # lora_name_or_path_ 인자 제거
|
1301 |
return json2output(json_data)
|
1302 |
return {}
|
1303 |
|
1304 |
+
|
1305 |
sample_bnt.click(
|
1306 |
sample_data,
|
1307 |
inputs=[lora_name_or_path],
|