From d2e2d77d552e8eb3ee5dd2ef8a21bb1d87bd0d3b Mon Sep 17 00:00:00 2001 From: James Osmond Date: Tue, 16 Apr 2024 18:55:47 +0100 Subject: [PATCH] Added `transcript` argument to `llm_summarise()` function --- app/pages/3_Summary.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/pages/3_Summary.py b/app/pages/3_Summary.py index 1f1393e..a6a998f 100644 --- a/app/pages/3_Summary.py +++ b/app/pages/3_Summary.py @@ -100,8 +100,8 @@ def image_to_base64(image): ) -def llm_summarise() -> str: - return "This is a summary" +def llm_summarise(transcript: str) -> str: + return f"This is a summary: {transcript}" def query_llm(prompt: str) -> str: @@ -122,7 +122,7 @@ def query_llm(prompt: str) -> str: st_summarise_button = st.button("Generate meeting summary") if st_summarise_button or st.session_state.summary_generated: st.session_state.summary_generated = True - st.markdown(llm_summarise()) + st.markdown(llm_summarise(transcript=data)) prompt = st.text_input(label="Enter query here:", placeholder="How ") st_query_button = st.button("Query LLM") if st_query_button and prompt != "":