Skip to content

Commit

Permalink
Fix default arguments of web demo
Browse files Browse the repository at this point in the history
  • Loading branch information
duzx16 committed Mar 14, 2023
1 parent 0c6d175 commit 584be64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
MAX_BOXES = MAX_TURNS * 2


def predict(input, history=[]):
def predict(input, history=None):
if history is None:
history = []
response, history = model.chat(tokenizer, input, history)
updates = []
for query, response in history:
Expand Down

0 comments on commit 584be64

Please sign in to comment.