jost commited on
Commit
e9a356d
·
verified ·
1 Parent(s): 55af095

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -37,7 +37,7 @@ def update_direct_steering_options(prompt_type):
37
  options = {
38
  "None": [],
39
  "Impersonation (direct steering)": ["Option 1", "Option 2", "Option 3"],
40
- "Most similar RAG (indirect steering with related context)": ["Option A1", "Option B", "Option C"],
41
  "Random RAG (indirect steering with randomized context)": ["Random 1", "Random 2", "Random 3"]
42
  }
43
 
@@ -61,7 +61,9 @@ def main():
61
  )
62
 
63
  direct_steering_option = gr.Dropdown(label="Select party/ideology",
64
- allow_custom_value=True)
 
 
65
 
66
  # Link the dropdowns so that the option dropdown updates based on the selected prompt manipulation
67
  prompt_manipulation.change(fn=update_direct_steering_options, inputs=prompt_manipulation, outputs=direct_steering_option)
 
37
  options = {
38
  "None": [],
39
  "Impersonation (direct steering)": ["Option 1", "Option 2", "Option 3"],
40
+ "Most similar RAG (indirect steering with related context)": ["Option A", "Option B", "Option C"],
41
  "Random RAG (indirect steering with randomized context)": ["Random 1", "Random 2", "Random 3"]
42
  }
43
 
 
61
  )
62
 
63
  direct_steering_option = gr.Dropdown(label="Select party/ideology",
64
+ allow_custom_value=True,
65
+ value=[], # Set an empty list as the initial value
66
+ choices=[])
67
 
68
  # Link the dropdowns so that the option dropdown updates based on the selected prompt manipulation
69
  prompt_manipulation.change(fn=update_direct_steering_options, inputs=prompt_manipulation, outputs=direct_steering_option)