Spaces:
Sleeping
Sleeping
ogegadavis254
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,7 @@ def get_streamed_response(message, history, model):
|
|
15 |
|
16 |
if not history: # If history is empty
|
17 |
all_message.append({"role": "user", "content": ""})
|
|
|
18 |
|
19 |
for human, assistant in history:
|
20 |
all_message.append({"role": "user", "content": human})
|
|
|
15 |
|
16 |
if not history: # If history is empty
|
17 |
all_message.append({"role": "user", "content": ""})
|
18 |
+
history = [("", "")] # Add dummy values to prevent unpacking error
|
19 |
|
20 |
for human, assistant in history:
|
21 |
all_message.append({"role": "user", "content": human})
|