Skip to content

Commit

Permalink
Added transcript argument to llm_summarise() function
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Osmond committed Apr 16, 2024
1 parent 3ecc5e6 commit d2e2d77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/pages/3_Summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 != "":
Expand Down

0 comments on commit d2e2d77

Please sign in to comment.