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