diff --git a/ui/continue_tab.py b/ui/continue_tab.py index 1ebbca8..977fa72 100644 --- a/ui/continue_tab.py +++ b/ui/continue_tab.py @@ -62,7 +62,7 @@ def build_continue_tab(): with gr.Column(scale=1): continue_status = gr.Textbox(label=t("continue_tab.gen_status"), interactive=False, lines=15) with gr.Column(scale=2): - continue_chapter_selector = gr.Dropdown(label="Danh sách chương đã tạo", choices=[], interactive=True) + continue_chapter_selector = gr.Dropdown(label="Danh sách chương đã tạo", choices=[], interactive=True, allow_custom_value=True) continue_content_display = gr.Textbox(label="Nội dung chương", lines=15, interactive=False) def on_refresh_continue(current_title): diff --git a/ui/create_tab.py b/ui/create_tab.py index dd93464..422ad6d 100644 --- a/ui/create_tab.py +++ b/ui/create_tab.py @@ -123,7 +123,7 @@ def build_create_tab(): with gr.Column(scale=1): generation_progress = gr.Textbox(label=t("create.gen_status"), lines=15, interactive=False) with gr.Column(scale=2): - chapter_selector = gr.Dropdown(label="Danh sách chương đã tạo", choices=[], interactive=True) + chapter_selector = gr.Dropdown(label="Danh sách chương đã tạo", choices=[], interactive=True, allow_custom_value=True) chapter_content_display = gr.Textbox(label="Nội dung chương", lines=15, interactive=False) def on_suggest_title(genre, sub_genres, custom_prompt):