williamagyapong commited on
Commit
92d4b40
·
verified ·
1 Parent(s): 0e89740

Update utility.py

Browse files
Files changed (1) hide show
  1. utility.py +0 -4
utility.py CHANGED
@@ -191,10 +191,6 @@ def parse_multiple_transactions(response_text):
191
  # Remove the first section if it's not a valid transaction
192
  if not re.search(r"\*\*Transaction Type\*\*", transaction_sections[0], re.IGNORECASE):
193
  transaction_sections.pop(0)
194
- # if len(transaction_sections) == 1: # process single transaction
195
- # transaction_data = parse_ai_response(response_text)
196
- # transactions.append(transaction_data)
197
- # return transactions
198
 
199
  # Extract intent: with support for a single intent per user prompt
200
  intent_match = re.search(r"\*\*Intent\*\*:\s*(\w+)", response_text)
 
191
  # Remove the first section if it's not a valid transaction
192
  if not re.search(r"\*\*Transaction Type\*\*", transaction_sections[0], re.IGNORECASE):
193
  transaction_sections.pop(0)
 
 
 
 
194
 
195
  # Extract intent: with support for a single intent per user prompt
196
  intent_match = re.search(r"\*\*Intent\*\*:\s*(\w+)", response_text)