Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
ajl2718 commited on
Commit ·
fc6ab0c
1
Parent(s): fe5e98d
use large db
Browse files
app.py
CHANGED
|
@@ -9,15 +9,15 @@ download('au_vic_lg', 'saunteringcat/whereabouts-db')
|
|
| 9 |
download('au_nsw_lg', 'saunteringcat/whereabouts-db')
|
| 10 |
|
| 11 |
# create a matcher object
|
| 12 |
-
matcher1 = Matcher('au_all_sm')
|
| 13 |
matcher2 = Matcher('au_all_lg')
|
| 14 |
-
matcher3 = Matcher('au_vic_lg')
|
| 15 |
-
matcher4 = Matcher('au_all_sm')
|
| 16 |
|
| 17 |
# function to geocode results
|
| 18 |
def geocode(addresses):
|
| 19 |
address_list = addresses.split('\n')
|
| 20 |
-
return
|
| 21 |
|
| 22 |
# the gradio interface
|
| 23 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
|
|
| 9 |
download('au_nsw_lg', 'saunteringcat/whereabouts-db')
|
| 10 |
|
| 11 |
# create a matcher object
|
| 12 |
+
#matcher1 = Matcher('au_all_sm')
|
| 13 |
matcher2 = Matcher('au_all_lg')
|
| 14 |
+
#matcher3 = Matcher('au_vic_lg')
|
| 15 |
+
#matcher4 = Matcher('au_all_sm')
|
| 16 |
|
| 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:
|