We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c20d181 commit 6a9d891Copy full SHA for 6a9d891
examples/main.py
@@ -46,7 +46,7 @@ def get_session_id():
46
47
48
# Get supported countries for dropdown choices
49
-country_choices = [(country['name'], country['iso3'].lower()) for country in get_supported_countries()]
+country_choices = [(country['name'], country['iso3']) for country in get_supported_countries()]
50
initial_context = country_choices[0][1]
51
52
with gr.Blocks() as demo:
@@ -85,9 +85,9 @@ def get_session_id():
85
gr.Examples(
86
example_labels=["Correct typo's", 'Ambiguous matches', 'Valid address'],
87
examples=[
88
- ['bel', '2000', 'antwerpn', 'leystraat', '11', '', ''],
89
- ['nld', '', 'Winsum', 'Postbus', '1', '', ''],
90
- ['nor', '0150', 'Oslo', '', '', '', 'Kirsten Flagstads plass 1'],
+ ['BEL', '2000', 'antwerpn', 'leystraat', '11', '', ''],
+ ['NLD', '', 'Winsum', 'Postbus', '1', '', ''],
+ ['NOR', '0150', 'Oslo', '', '', '', 'Kirsten Flagstads plass 1'],
91
],
92
inputs=validate_inputs,
93
)
src/postcode_eu_api_client/client.py
@@ -229,7 +229,7 @@ def validate(
229
"""
230
url_parts = [
231
'international/v1/validate',
232
- quote(country, safe='')
+ quote(country.lower(), safe='')
233
]
234
235
variables = {
0 commit comments