We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3502ee commit 6654b93Copy full SHA for 6654b93
pages/DarkGPT.py
@@ -68,7 +68,7 @@ def main():
68
(conv_id[0],))
69
first_bot_response = c.fetchone()
70
if first_bot_response:
71
- 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]}"):
72
display_conversation(conv_id[0])
73
74
# Sidebar (left side) - Clear Chat History button
@@ -119,4 +119,4 @@ def display_conversation(conversation_id):
119
120
121
if __name__ == "__main__":
122
- main()
+ main()
0 commit comments