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

Update app.py

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