vachaspathi commited on
Commit
b36a95b
·
verified ·
1 Parent(s): f1b255d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -542,7 +542,7 @@ def parse_and_execute_model_tool_output(model_text: str, history: Optional[List[
542
  for k in ("amount","price","rate","item"):
543
  if k in it:
544
  try:
545
- amount = float(str(it[k]).replace("$","").replace(",",""").strip())
546
  break
547
  except Exception:
548
  continue
 
542
  for k in ("amount","price","rate","item"):
543
  if k in it:
544
  try:
545
+ amount = float(str(it[k]).replace("$","").replace(",","").strip())
546
  break
547
  except Exception:
548
  continue