Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -108,7 +108,7 @@ def respond(
|
|
108 |
|
109 |
if not arguments:
|
110 |
arguments = "{}"
|
111 |
-
|
112 |
arguments += "}"
|
113 |
if name:
|
114 |
result = f"💥 Error using tool {name}, tools doesn't exists"
|
|
|
108 |
|
109 |
if not arguments:
|
110 |
arguments = "{}"
|
111 |
+
elif arguments.strip()[-1] != "}":
|
112 |
arguments += "}"
|
113 |
if name:
|
114 |
result = f"💥 Error using tool {name}, tools doesn't exists"
|