akhaliq HF staff commited on
Commit
d04def8
1 Parent(s): 0bfb67d
Files changed (1) hide show
  1. utils.py +2 -1
utils.py CHANGED
@@ -33,7 +33,8 @@ def get_app(
33
  )
34
 
35
  if not is_chat:
36
- demo.fns = {}
 
37
  else:
38
  for k, v in list(demo.fns.items()):
39
  if isinstance(v.api_name, str) and "chat" in v.api_name:
 
33
  )
34
 
35
  if not is_chat:
36
+ for k in list(demo.fns.keys()):
37
+ del demo.fns[k]
38
  else:
39
  for k, v in list(demo.fns.items()):
40
  if isinstance(v.api_name, str) and "chat" in v.api_name: