feat: Add new UI tabs for novel creation and continuation.
This commit is contained in:
+1
-1
@@ -62,7 +62,7 @@ def build_continue_tab():
|
|||||||
with gr.Column(scale=1):
|
with gr.Column(scale=1):
|
||||||
continue_status = gr.Textbox(label=t("continue_tab.gen_status"), interactive=False, lines=15)
|
continue_status = gr.Textbox(label=t("continue_tab.gen_status"), interactive=False, lines=15)
|
||||||
with gr.Column(scale=2):
|
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)
|
continue_content_display = gr.Textbox(label="Nội dung chương", lines=15, interactive=False)
|
||||||
|
|
||||||
def on_refresh_continue(current_title):
|
def on_refresh_continue(current_title):
|
||||||
|
|||||||
+1
-1
@@ -123,7 +123,7 @@ def build_create_tab():
|
|||||||
with gr.Column(scale=1):
|
with gr.Column(scale=1):
|
||||||
generation_progress = gr.Textbox(label=t("create.gen_status"), lines=15, interactive=False)
|
generation_progress = gr.Textbox(label=t("create.gen_status"), lines=15, interactive=False)
|
||||||
with gr.Column(scale=2):
|
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)
|
chapter_content_display = gr.Textbox(label="Nội dung chương", lines=15, interactive=False)
|
||||||
|
|
||||||
def on_suggest_title(genre, sub_genres, custom_prompt):
|
def on_suggest_title(genre, sub_genres, custom_prompt):
|
||||||
|
|||||||
Reference in New Issue
Block a user