Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -106,7 +106,6 @@ setup_hf_dataset()
|
|
106 |
|
107 |
gradio_app = gr.Interface(
|
108 |
process_submission,
|
109 |
-
inputs=[
|
110 |
with gr.Blocks() as gradio_app:
|
111 |
selected_country = gr.Dropdown(
|
112 |
choices=list(country_to_states.keys()),
|
@@ -115,7 +114,7 @@ gradio_app = gr.Interface(
|
|
115 |
)
|
116 |
selected_state = gr.Dropdown(
|
117 |
choices=[],
|
118 |
-
label="State / Province",
|
119 |
interactive=True
|
120 |
)
|
121 |
city_field = gr.Textbox(label="City (optional)")
|
@@ -182,8 +181,7 @@ gradio_app = gr.Interface(
|
|
182 |
)
|
183 |
|
184 |
gr.Markdown("## South Asian Image Data Collection")
|
185 |
-
gr.Markdown("Upload an image and answer questions about its cultural significance.")
|
186 |
-
],
|
187 |
outputs=[
|
188 |
gr.Image(label="Submitted Image"),
|
189 |
gr.Text(label="Text Response"),
|
|
|
106 |
|
107 |
gradio_app = gr.Interface(
|
108 |
process_submission,
|
|
|
109 |
with gr.Blocks() as gradio_app:
|
110 |
selected_country = gr.Dropdown(
|
111 |
choices=list(country_to_states.keys()),
|
|
|
114 |
)
|
115 |
selected_state = gr.Dropdown(
|
116 |
choices=[],
|
117 |
+
label="State / Province / District (updates based on country)",
|
118 |
interactive=True
|
119 |
)
|
120 |
city_field = gr.Textbox(label="City (optional)")
|
|
|
181 |
)
|
182 |
|
183 |
gr.Markdown("## South Asian Image Data Collection")
|
184 |
+
gr.Markdown("Upload an image and answer questions about its cultural significance."),
|
|
|
185 |
outputs=[
|
186 |
gr.Image(label="Submitted Image"),
|
187 |
gr.Text(label="Text Response"),
|