Spaces:
Sleeping
Sleeping
Update app.py
Browse files24 unmodified lines2526272829303132282930313233343524 unmodified lines except json.JSONDecodeError: return model_output # Return raw model output if it's not valid JSON
if amount: try: data["amount"] = float(amount) # Convert to float except ValueError: data["amount"] = amount # Keep as string if conversion fails # if amount: # try: # data["amount"] = float(amount) # Convert to float # except ValueError: # data["amount"] = amount # Keep as string if conversion fails
return json.dumps(data, ensure_ascii=False)
app.py+5-5