Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -37,11 +37,12 @@ def main():
|
|
37 |
description = "This is a simple interface to compare two model prodided by Anyscale. Please enter your API key and your message."
|
38 |
with gr.Blocks() as demo:
|
39 |
|
40 |
-
# Prompt manipulation
|
41 |
with gr.Row():
|
42 |
prompt_manipulation = gr.Dropdown(
|
43 |
label="Prompt Manipulation",
|
44 |
choices=[
|
|
|
45 |
"Impersonation (direct steering)",
|
46 |
"Most similar RAG (indirect steering with related context)",
|
47 |
"Random RAG (indirect steering with randomized context)"
|
@@ -53,7 +54,7 @@ def main():
|
|
53 |
direct_steering_option = gr.Dropdown(
|
54 |
label="Direct Steering Options",
|
55 |
choices=["Option 1", "Option 2", "Option 3", "Option 4"],
|
56 |
-
visible=
|
57 |
)
|
58 |
|
59 |
# Making direct_steering_option visible based on prompt_manipulation choice
|
|
|
37 |
description = "This is a simple interface to compare two model prodided by Anyscale. Please enter your API key and your message."
|
38 |
with gr.Blocks() as demo:
|
39 |
|
40 |
+
# Prompt manipulation dropdown
|
41 |
with gr.Row():
|
42 |
prompt_manipulation = gr.Dropdown(
|
43 |
label="Prompt Manipulation",
|
44 |
choices=[
|
45 |
+
"None",
|
46 |
"Impersonation (direct steering)",
|
47 |
"Most similar RAG (indirect steering with related context)",
|
48 |
"Random RAG (indirect steering with randomized context)"
|
|
|
54 |
direct_steering_option = gr.Dropdown(
|
55 |
label="Direct Steering Options",
|
56 |
choices=["Option 1", "Option 2", "Option 3", "Option 4"],
|
57 |
+
visible=True # Initially hidden
|
58 |
)
|
59 |
|
60 |
# Making direct_steering_option visible based on prompt_manipulation choice
|