Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
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():
|