Spaces:
Runtime error
Runtime error
remove select json
Browse files- ui/components.py +0 -8
ui/components.py
CHANGED
|
@@ -93,14 +93,6 @@ def create_text2music_ui(
|
|
| 93 |
load_data_func=None,
|
| 94 |
):
|
| 95 |
|
| 96 |
-
with gr.Row(equal_height=True):
|
| 97 |
-
curr_file_dir = os.path.dirname(__file__)
|
| 98 |
-
output_file_dir = os.path.join(curr_file_dir, "..", "..", "outputs")
|
| 99 |
-
json_files = [f for f in os.listdir(output_file_dir) if f.endswith('.json')]
|
| 100 |
-
json_files.sort(reverse=True, key=lambda x: int(x.split('_')[1]))
|
| 101 |
-
output_files = gr.Dropdown(choices=json_files, label="Select previous generated input params", scale=9, interactive=True)
|
| 102 |
-
load_bnt = gr.Button("Load", variant="primary", scale=1)
|
| 103 |
-
|
| 104 |
with gr.Row():
|
| 105 |
with gr.Column():
|
| 106 |
with gr.Row(equal_height=True):
|
|
|
|
| 93 |
load_data_func=None,
|
| 94 |
):
|
| 95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
with gr.Row():
|
| 97 |
with gr.Column():
|
| 98 |
with gr.Row(equal_height=True):
|