Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -92,7 +92,9 @@ def main():
|
|
92 |
political_statement_initial_choices = [f"{i+1}. {statement['text']}" for i, statement in enumerate(wahl_o_mat_data['statements'])]
|
93 |
political_statement = gr.Dropdown(
|
94 |
label="Political Statement",
|
|
|
95 |
choices=political_statement_initial_choices, # Set default to 'Wahl-O-Mat' statements
|
|
|
96 |
)
|
97 |
|
98 |
# Link the dropdowns so that the political statement dropdown updates based on the selected ideology test
|
|
|
92 |
political_statement_initial_choices = [f"{i+1}. {statement['text']}" for i, statement in enumerate(wahl_o_mat_data['statements'])]
|
93 |
political_statement = gr.Dropdown(
|
94 |
label="Political Statement",
|
95 |
+
placeholder="Enter your own political statement here or select one..."
|
96 |
choices=political_statement_initial_choices, # Set default to 'Wahl-O-Mat' statements
|
97 |
+
allow_custom_value = True
|
98 |
)
|
99 |
|
100 |
# Link the dropdowns so that the political statement dropdown updates based on the selected ideology test
|