Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -60,11 +60,11 @@ def main():
|
|
60 |
"Random RAG (indirect steering with randomized context)"
|
61 |
]
|
62 |
)
|
63 |
-
|
64 |
-
|
65 |
-
with gr.Row():
|
66 |
direct_steering_option = gr.Dropdown(label="Direct Steering Option")
|
67 |
prompt_manipulation.change(fn=update_dropdown_options, inputs=prompt_manipulation, outputs=direct_steering_option)
|
|
|
68 |
|
69 |
with gr.Row():
|
70 |
api_key_input = gr.Textbox(label="API Key", placeholder="Enter your API key here", show_label=True, type="password")
|
|
|
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():
|
70 |
api_key_input = gr.Textbox(label="API Key", placeholder="Enter your API key here", show_label=True, type="password")
|