Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def generate_response(user_message, cid, history=None):
|
|
| 17 |
|
| 18 |
if history is None:
|
| 19 |
history = []
|
| 20 |
-
if cid
|
| 21 |
cid = str(uuid.uuid4())
|
| 22 |
|
| 23 |
history.append(user_message)
|
|
|
|
| 17 |
|
| 18 |
if history is None:
|
| 19 |
history = []
|
| 20 |
+
if cid == "":
|
| 21 |
cid = str(uuid.uuid4())
|
| 22 |
|
| 23 |
history.append(user_message)
|