nniehaus commited on
Commit
bcbcb91
·
verified ·
1 Parent(s): 9e199d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -57,6 +57,9 @@ if generate_button and city and preferences:
57
  for line in reply.splitlines():
58
  if ":" in line:
59
  location = line.split(":")[0].strip() # Full location "Neighborhood, City, State"
 
 
 
60
  neighborhoods.append(location)
61
 
62
  # Display Zillow links
 
57
  for line in reply.splitlines():
58
  if ":" in line:
59
  location = line.split(":")[0].strip() # Full location "Neighborhood, City, State"
60
+ # Remove any leading numbering
61
+ if location[0].isdigit():
62
+ location = location.split(" ", 1)[1].strip()
63
  neighborhoods.append(location)
64
 
65
  # Display Zillow links