Skip to content

Commit 6654b93

Browse files
Update DarkGPT.py
1 parent c3502ee commit 6654b93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/DarkGPT.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def main():
6868
(conv_id[0],))
6969
first_bot_response = c.fetchone()
7070
if first_bot_response:
71-
if st.sidebar.button(" ".join(first_bot_response[0].split()[0:5])):
71+
if st.sidebar.button(" ".join(first_bot_response[0].split()[0:5]), key=f"button_{conv_id[0]}"):
7272
display_conversation(conv_id[0])
7373

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

120120

121121
if __name__ == "__main__":
122-
main()
122+
main()

0 commit comments

Comments
 (0)