jonathanjordan21 commited on
Commit
8365d4a
·
verified ·
1 Parent(s): e454ccf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ def respond(
51
  ):
52
  global codes_emb
53
 
54
- if history[-1][-1][21:24] == "033":
55
  list_his = ""
56
  for his in history[::-1][1:]:
57
  if his[-1][21:24] != "033":
 
51
  ):
52
  global codes_emb
53
 
54
+ if history and history[-1][-1][21:24] == "033":
55
  list_his = ""
56
  for his in history[::-1][1:]:
57
  if his[-1][21:24] != "033":