Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
ajl2718 commited on
Commit ·
f1f31d2
1
Parent(s): b71a362
Fix bug in geocoding function
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ matcher4 = Matcher('au_all_sm')
|
|
| 17 |
# function to geocode results
|
| 18 |
def geocode(addresses):
|
| 19 |
address_list = addresses.split('\n')
|
| 20 |
-
return
|
| 21 |
|
| 22 |
text_input = gr.Textbox(lines=2, label="Addresses to geocode (one row per address)")
|
| 23 |
json_output = gr.JSON(label="Output JSON data")
|
|
|
|
| 17 |
# function to geocode results
|
| 18 |
def geocode(addresses):
|
| 19 |
address_list = addresses.split('\n')
|
| 20 |
+
return matcher1.geocode(address_list)
|
| 21 |
|
| 22 |
text_input = gr.Textbox(lines=2, label="Addresses to geocode (one row per address)")
|
| 23 |
json_output = gr.JSON(label="Output JSON data")
|