fschwartzer commited on
Commit
7b357aa
1 Parent(s): 2864c62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -124,7 +124,8 @@ if not filtered_df.empty:
124
  # For each line, extract the numeric value and add it to the conta_sum
125
  for line in lines:
126
  if line.strip(): # Ensure the line is not empty
127
- _, value = line.split()
 
128
  conta_sum += float(value)
129
 
130
  # Format the sum as a monetary value
 
124
  # For each line, extract the numeric value and add it to the conta_sum
125
  for line in lines:
126
  if line.strip(): # Ensure the line is not empty
127
+ parts = line.split()
128
+ value = parts[-1] # Take the last element as the value
129
  conta_sum += float(value)
130
 
131
  # Format the sum as a monetary value