Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|