Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(",",""
|
| 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
|