Skip to content

Commit

Permalink
Update DarkGPT.py
Browse files Browse the repository at this point in the history
  • Loading branch information
codewithdark-git committed Jul 26, 2024
1 parent c3502ee commit 6654b93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/DarkGPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def main():
(conv_id[0],))
first_bot_response = c.fetchone()
if first_bot_response:
if st.sidebar.button(" ".join(first_bot_response[0].split()[0:5])):
if st.sidebar.button(" ".join(first_bot_response[0].split()[0:5]), key=f"button_{conv_id[0]}"):
display_conversation(conv_id[0])

# Sidebar (left side) - Clear Chat History button
Expand Down Expand Up @@ -119,4 +119,4 @@ def display_conversation(conversation_id):


if __name__ == "__main__":
main()
main()

0 comments on commit 6654b93

Please sign in to comment.