jost commited on
Commit
d1ef876
·
verified ·
1 Parent(s): 0a293cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -70,16 +70,18 @@ def main():
70
  description = "This is a simple interface to compare two model prodided by Anyscale. Please enter your API key and your message."
71
  with gr.Blocks() as demo:
72
 
73
- # Ideology Tst drowndown
74
  with gr.Row():
75
  ideology_test = gr.Dropdown(
76
  label="Ideology Test",
77
  choices=["Wahl-O-Mat", "Political Compass Test"],
 
78
  value="Wahl-O-Mat" # Default value
79
  )
80
 
81
  political_statement = gr.Dropdown(
82
  label="Political Statement",
 
83
  choices=list(range(1, 39)) # Default to "Wahl-O-Mat" options
84
  )
85
 
@@ -96,11 +98,12 @@ def main():
96
  "Most similar RAG (indirect steering with related context)",
97
  "Random RAG (indirect steering with randomized context)"
98
  ],
 
99
  value="None", # default value
100
  )
101
 
102
  direct_steering_option = gr.Dropdown(label="Select party/ideology",
103
- allow_custom_value=True,
104
  value=[], # Set an empty list as the initial value
105
  choices=[])
106
 
 
70
  description = "This is a simple interface to compare two model prodided by Anyscale. Please enter your API key and your message."
71
  with gr.Blocks() as demo:
72
 
73
+ # Ideology Test drowndown
74
  with gr.Row():
75
  ideology_test = gr.Dropdown(
76
  label="Ideology Test",
77
  choices=["Wahl-O-Mat", "Political Compass Test"],
78
+ allow_custom_value=False,
79
  value="Wahl-O-Mat" # Default value
80
  )
81
 
82
  political_statement = gr.Dropdown(
83
  label="Political Statement",
84
+ allow_custom_value=False,
85
  choices=list(range(1, 39)) # Default to "Wahl-O-Mat" options
86
  )
87
 
 
98
  "Most similar RAG (indirect steering with related context)",
99
  "Random RAG (indirect steering with randomized context)"
100
  ],
101
+ allow_custom_value=False,
102
  value="None", # default value
103
  )
104
 
105
  direct_steering_option = gr.Dropdown(label="Select party/ideology",
106
+ allow_custom_value=False,
107
  value=[], # Set an empty list as the initial value
108
  choices=[])
109