Fix process_dd value and choices assignment to use dictionary methods for better handling of initialization
Browse files
app.py
CHANGED
|
@@ -710,8 +710,8 @@ with gr.Blocks(css="""
|
|
| 710 |
# 1) 既定CSVの自動ロード
|
| 711 |
init_msg, init_proc_update, _ = initialize_default_csv()
|
| 712 |
status_csv.value = init_msg
|
| 713 |
-
process_dd.value = init_proc_update.value
|
| 714 |
-
process_dd.choices = init_proc_update.choices
|
| 715 |
|
| 716 |
# 2) CSVアップロードで更新
|
| 717 |
csv_uploader.change(
|
|
|
|
| 710 |
# 1) 既定CSVの自動ロード
|
| 711 |
init_msg, init_proc_update, _ = initialize_default_csv()
|
| 712 |
status_csv.value = init_msg
|
| 713 |
+
process_dd.value = init_proc_update.get('value')
|
| 714 |
+
process_dd.choices = init_proc_update.get('choices', [])
|
| 715 |
|
| 716 |
# 2) CSVアップロードで更新
|
| 717 |
csv_uploader.change(
|