Skip to content

Commit

Permalink
openAI issue resolved and added chat response to the front-end
Browse files Browse the repository at this point in the history
  • Loading branch information
iam-yashpradhan committed Nov 22, 2024
1 parent 8920d30 commit bd381dc
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 bd381dc

Please sign in to comment.