Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -239,7 +239,7 @@ def start_conversation_monitor(client, index, embed_model, text_chunks):
|
|
239 |
print(f"processed_convos: {processed_convos}")
|
240 |
|
241 |
# Filter out conversations created before app startup
|
242 |
-
|
243 |
processed_convos.add(convo.sid)
|
244 |
print(f"π Monitoring conversation SID: {convo.sid}, Created at: {convo.date_created}")
|
245 |
threading.Thread(target=poll_convo, args=(convo.sid,), daemon=True).start()
|
|
|
239 |
print(f"processed_convos: {processed_convos}")
|
240 |
|
241 |
# Filter out conversations created before app startup
|
242 |
+
if convo.date_created > APP_START_TIME:
|
243 |
processed_convos.add(convo.sid)
|
244 |
print(f"π Monitoring conversation SID: {convo.sid}, Created at: {convo.date_created}")
|
245 |
threading.Thread(target=poll_convo, args=(convo.sid,), daemon=True).start()
|