Spaces:
Runtime error
Runtime error
update
Browse files
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:
|