jost commited on
Commit
c76bc9c
·
verified ·
1 Parent(s): 410b6d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -58,12 +58,14 @@ def main():
58
  "Impersonation (direct steering)",
59
  "Most similar RAG (indirect steering with related context)",
60
  "Random RAG (indirect steering with randomized context)"
61
- ]
 
62
  )
63
 
64
  # Conditional dropdown - options revealed based on ‘Prompt Manipulation’ selection
65
  direct_steering_option = gr.Dropdown(label="Direct Steering Option")
66
- prompt_manipulation.change(fn=update_dropdown_options, inputs=prompt_manipulation, outputs=direct_steering_option)
 
67
 
68
 
69
  with gr.Row():
 
58
  "Impersonation (direct steering)",
59
  "Most similar RAG (indirect steering with related context)",
60
  "Random RAG (indirect steering with randomized context)"
61
+ ],
62
+ value="None", # default value
63
  )
64
 
65
  # Conditional dropdown - options revealed based on ‘Prompt Manipulation’ selection
66
  direct_steering_option = gr.Dropdown(label="Direct Steering Option")
67
+
68
+ prompt_manipulation.change(fn=update_dropdown_options, inputs=prompt_manipulation, outputs=direct_steering_option)
69
 
70
 
71
  with gr.Row():