ankush13r commited on
Commit
8fc4087
·
verified ·
1 Parent(s): 081fa2b

Update app.py

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