From 8c32277e8574d7b1f7dba32dbd84b5f8579b5207 Mon Sep 17 00:00:00 2001 From: tcsenpai Date: Fri, 23 May 2025 10:40:37 +0200 Subject: [PATCH] fixed summary --- app.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app.py b/app.py index 9b5eb3f..f05e5e4 100644 --- a/app.py +++ b/app.py @@ -325,12 +325,6 @@ def create_interface(): ) yt_process_btn = gr.Button("Process Video", variant="primary") - # Move summary text below the button - if OLLAMA_AVAILABLE: - yt_summary_text = gr.Textbox( - label="Summary", lines=5, max_lines=10, visible=False - ) - with gr.Column(): # YouTube output components yt_output_text = gr.Textbox( @@ -341,6 +335,12 @@ def create_interface(): ) yt_source = gr.Textbox(label="Source", interactive=False) + # Add summary text box below the main output + if OLLAMA_AVAILABLE: + yt_summary_text = gr.Textbox( + label="Summary", lines=5, max_lines=10, value="" + ) + # Set up the event handler def process_yt_with_summary(url, model, lang, summarize, ollama_model): result = process_youtube_url(