Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,9 @@ def generate_response(user_message, cid, history=None):
|
|
| 19 |
history = []
|
| 20 |
if cid == "" or None:
|
| 21 |
cid = str(uuid.uuid4())
|
| 22 |
-
|
|
|
|
|
|
|
| 23 |
history.append(user_message)
|
| 24 |
|
| 25 |
stream = co.chat_stream(message=user_message, conversation_id=cid, model='command-r-plus', connectors=[], temperature=0.3)
|
|
|
|
| 19 |
history = []
|
| 20 |
if cid == "" or None:
|
| 21 |
cid = str(uuid.uuid4())
|
| 22 |
+
|
| 23 |
+
print(f"cid: {cid} prompt:{user_message}")
|
| 24 |
+
|
| 25 |
history.append(user_message)
|
| 26 |
|
| 27 |
stream = co.chat_stream(message=user_message, conversation_id=cid, model='command-r-plus', connectors=[], temperature=0.3)
|