DSatishchandra commited on
Commit
4bfa380
·
verified ·
1 Parent(s): dc7a497

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -255,12 +255,11 @@ def extract_mobile_number(command):
255
  match = re.search(r'\b\d{10}\b', command) # Looks for a 10-digit number
256
  return match.group(0) if match else None
257
 
258
- def extract_quantity(command):
259
  """Extracts numerical quantity from command."""
260
  match = re.search(r'\b\d+\b', command) # Looks for any number in command
261
  return int(match.group(0)) if match else None
262
 
263
-
264
  # Main logic to process the command
265
  # This is the function that processes the commands, make sure the logic is inside it
266
  def process_command(command):
 
255
  match = re.search(r'\b\d{10}\b', command) # Looks for a 10-digit number
256
  return match.group(0) if match else None
257
 
258
+ def extract_quantity(command):
259
  """Extracts numerical quantity from command."""
260
  match = re.search(r'\b\d+\b', command) # Looks for any number in command
261
  return int(match.group(0)) if match else None
262
 
 
263
  # Main logic to process the command
264
  # This is the function that processes the commands, make sure the logic is inside it
265
  def process_command(command):