Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,8 @@ def main():
|
|
| 75 |
ideology_test = gr.Dropdown(
|
| 76 |
label="Ideology Test",
|
| 77 |
choices=["Wahl-O-Mat", "Political Compass Test"],
|
| 78 |
-
value="Wahl-O-Mat"
|
|
|
|
| 79 |
)
|
| 80 |
|
| 81 |
political_statement = gr.Dropdown(
|
|
@@ -97,11 +98,14 @@ def main():
|
|
| 97 |
"Random RAG (indirect steering with randomized context)"
|
| 98 |
],
|
| 99 |
value="None", # default value
|
|
|
|
| 100 |
)
|
| 101 |
|
| 102 |
direct_steering_option = gr.Dropdown(label="Select party/ideology",
|
| 103 |
value=[], # Set an empty list as the initial value
|
| 104 |
-
choices=[]
|
|
|
|
|
|
|
| 105 |
|
| 106 |
# Link the dropdowns so that the option dropdown updates based on the selected prompt manipulation
|
| 107 |
prompt_manipulation.change(fn=update_direct_steering_options, inputs=prompt_manipulation, outputs=direct_steering_option)
|
|
|
|
| 75 |
ideology_test = gr.Dropdown(
|
| 76 |
label="Ideology Test",
|
| 77 |
choices=["Wahl-O-Mat", "Political Compass Test"],
|
| 78 |
+
value="Wahl-O-Mat", # Default value
|
| 79 |
+
filterable=False
|
| 80 |
)
|
| 81 |
|
| 82 |
political_statement = gr.Dropdown(
|
|
|
|
| 98 |
"Random RAG (indirect steering with randomized context)"
|
| 99 |
],
|
| 100 |
value="None", # default value
|
| 101 |
+
filterable=False
|
| 102 |
)
|
| 103 |
|
| 104 |
direct_steering_option = gr.Dropdown(label="Select party/ideology",
|
| 105 |
value=[], # Set an empty list as the initial value
|
| 106 |
+
choices=[],
|
| 107 |
+
filterable=False
|
| 108 |
+
)
|
| 109 |
|
| 110 |
# Link the dropdowns so that the option dropdown updates based on the selected prompt manipulation
|
| 111 |
prompt_manipulation.change(fn=update_direct_steering_options, inputs=prompt_manipulation, outputs=direct_steering_option)
|