Spaces:
Sleeping
Sleeping
Rohan Kumar Singh
commited on
Commit
•
a5078fe
1
Parent(s):
6b278f6
no chat no save
Browse files
app.py
CHANGED
@@ -149,7 +149,7 @@ with container:
|
|
149 |
{"role": "system", "content": "You are a helpful assistant."}
|
150 |
]
|
151 |
|
152 |
-
if save_button:
|
153 |
# Send a ping to confirm a successful connection
|
154 |
try:
|
155 |
client.admin.command('ping')
|
|
|
149 |
{"role": "system", "content": "You are a helpful assistant."}
|
150 |
]
|
151 |
|
152 |
+
if save_button and st.session_state['generated'] and st.session_state['past']:
|
153 |
# Send a ping to confirm a successful connection
|
154 |
try:
|
155 |
client.admin.command('ping')
|