Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
ajl2718
commited on
Commit
·
b0e1f78
1
Parent(s):
fc6ab0c
Use trigram matching
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ matcher2 = Matcher('au_all_lg')
|
|
17 |
# function to geocode results
|
18 |
def geocode(addresses):
|
19 |
address_list = addresses.split('\n')
|
20 |
-
return matcher2.geocode(address_list)
|
21 |
|
22 |
# the gradio interface
|
23 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
|
17 |
# function to geocode results
|
18 |
def geocode(addresses):
|
19 |
address_list = addresses.split('\n')
|
20 |
+
return matcher2.geocode(address_list, how='trigram')
|
21 |
|
22 |
# the gradio interface
|
23 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|