ogegadavis254 commited on
Commit
f7ca69c
·
verified ·
1 Parent(s): 01d4f3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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})