Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,6 +24,7 @@ states_by_country = {
|
|
| 24 |
"Nepal": ["Bagmati", "Gandaki", "Karnali", "Koshi", "Lumbini", "Madhesh", "Sudurpashchim"],
|
| 25 |
"Sri Lanka": ["Central", "Eastern", "North Central", "Northern", "North Western", "Sabaragamuwa", "Southern","Uva", "Western"]
|
| 26 |
}
|
|
|
|
| 27 |
|
| 28 |
south_asian_languages = [
|
| 29 |
"Assamese", "Bengali", "Bhojpuri", "Bodo", "Dari", "Dzongkha", "Dogri", "Gujarati", "Hindi", "Kannada",
|
|
@@ -189,7 +190,7 @@ with gr.Blocks(theme='1024m/1024m-1') as gradio_app:
|
|
| 189 |
lang_warning = gr.Markdown(visible=False)
|
| 190 |
other_language = gr.Textbox(label="Other Language:", info="If not listed above", visible=True)
|
| 191 |
countries = ["None", "India", "Pakistan", "Bangladesh", "Afghanistan", "Bhutan", "Nepal", "Sri Lanka", "OTHER"]
|
| 192 |
-
country_dropdown = gr.Dropdown(choices=countries, label="Country where the image was taken:", interactive=True, value=
|
| 193 |
country_warning = gr.Markdown(visible=False)
|
| 194 |
other_country = gr.Textbox(label="Other Country:", info="If not listed above", visible=False)
|
| 195 |
state_dropdown = gr.Dropdown(choices=[], label="State/Province (Optional but preferred):", interactive=False, visible=False)
|
|
|
|
| 24 |
"Nepal": ["Bagmati", "Gandaki", "Karnali", "Koshi", "Lumbini", "Madhesh", "Sudurpashchim"],
|
| 25 |
"Sri Lanka": ["Central", "Eastern", "North Central", "Northern", "North Western", "Sabaragamuwa", "Southern","Uva", "Western"]
|
| 26 |
}
|
| 27 |
+
countries = ["India", "Pakistan", "Bangladesh", "Afghanistan", "Bhutan", "Nepal", "Sri Lanka","OTHER"]
|
| 28 |
|
| 29 |
south_asian_languages = [
|
| 30 |
"Assamese", "Bengali", "Bhojpuri", "Bodo", "Dari", "Dzongkha", "Dogri", "Gujarati", "Hindi", "Kannada",
|
|
|
|
| 190 |
lang_warning = gr.Markdown(visible=False)
|
| 191 |
other_language = gr.Textbox(label="Other Language:", info="If not listed above", visible=True)
|
| 192 |
countries = ["None", "India", "Pakistan", "Bangladesh", "Afghanistan", "Bhutan", "Nepal", "Sri Lanka", "OTHER"]
|
| 193 |
+
country_dropdown = gr.Dropdown(choices=countries, label="Country where the image was taken:", interactive=True, value=countries[-1])
|
| 194 |
country_warning = gr.Markdown(visible=False)
|
| 195 |
other_country = gr.Textbox(label="Other Country:", info="If not listed above", visible=False)
|
| 196 |
state_dropdown = gr.Dropdown(choices=[], label="State/Province (Optional but preferred):", interactive=False, visible=False)
|