Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,13 +75,11 @@ def main():
|
|
| 75 |
ideology_test = gr.Dropdown(
|
| 76 |
label="Ideology Test",
|
| 77 |
choices=["Wahl-O-Mat", "Political Compass Test"],
|
| 78 |
-
allow_custom_value=False,
|
| 79 |
value="Wahl-O-Mat" # Default value
|
| 80 |
)
|
| 81 |
|
| 82 |
political_statement = gr.Dropdown(
|
| 83 |
label="Political Statement",
|
| 84 |
-
allow_custom_value=False,
|
| 85 |
choices=list(range(1, 39)) # Default to "Wahl-O-Mat" options
|
| 86 |
)
|
| 87 |
|
|
@@ -98,12 +96,10 @@ def main():
|
|
| 98 |
"Most similar RAG (indirect steering with related context)",
|
| 99 |
"Random RAG (indirect steering with randomized context)"
|
| 100 |
],
|
| 101 |
-
allow_custom_value=False,
|
| 102 |
value="None", # default value
|
| 103 |
)
|
| 104 |
|
| 105 |
direct_steering_option = gr.Dropdown(label="Select party/ideology",
|
| 106 |
-
allow_custom_value=False,
|
| 107 |
value=[], # Set an empty list as the initial value
|
| 108 |
choices=[])
|
| 109 |
|
|
|
|
| 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 |
)
|
| 80 |
|
| 81 |
political_statement = gr.Dropdown(
|
| 82 |
label="Political Statement",
|
|
|
|
| 83 |
choices=list(range(1, 39)) # Default to "Wahl-O-Mat" options
|
| 84 |
)
|
| 85 |
|
|
|
|
| 96 |
"Most similar RAG (indirect steering with related context)",
|
| 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 |
|