From 6654b93db234973be7418cf2d94a642533f4479c Mon Sep 17 00:00:00 2001 From: Dark Coder Date: Fri, 26 Jul 2024 10:23:09 +0500 Subject: [PATCH] Update DarkGPT.py --- pages/DarkGPT.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/DarkGPT.py b/pages/DarkGPT.py index aff26dc2..fb74a3b9 100644 --- a/pages/DarkGPT.py +++ b/pages/DarkGPT.py @@ -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 @@ -119,4 +119,4 @@ def display_conversation(conversation_id): if __name__ == "__main__": - main() + main() \ No newline at end of file