Skip to content

Commit

Permalink
Merge pull request #47 from dsba6010-llm-applications/openAI-issue
Browse files Browse the repository at this point in the history
openAI issue resolved and added chat response to the front-end
  • Loading branch information
neal-logan authored Nov 22, 2024
2 parents a308aee + bd381dc commit 60af79e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions MinuteMate/front/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,10 @@ def display_chat_messages() -> None:
if response.status_code == 200:
# Extract the generated response
generated_response = response.json().get('generated_response', 'No response generated')
respo = response.json()

# Display the response
with st.chat_message("assistant"):
st.markdown(respo)
st.markdown(generated_response)

# Add to message history
st.session_state.messages.append({
Expand Down

0 comments on commit 60af79e

Please sign in to comment.