ankush13r commited on
Commit
ea65eb9
·
verified ·
1 Parent(s): 6e63547

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -108,6 +108,8 @@ def respond(
108
 
109
  if not arguments:
110
  arguments = "{}"
 
 
111
  if name:
112
  result = f"💥 Error using tool {name}, tools doesn't exists"
113
  print("arguments:", arguments)
 
108
 
109
  if not arguments:
110
  arguments = "{}"
111
+ else if arguments[-1] != "}":
112
+ arguments += "}"
113
  if name:
114
  result = f"💥 Error using tool {name}, tools doesn't exists"
115
  print("arguments:", arguments)