jost commited on
Commit
11ea3b5
1 Parent(s): 171bf75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -40,11 +40,9 @@ def update_direct_steering_options(prompt_type):
40
  "Most similar RAG (indirect steering with related context)": ["Option A", "Option B", "Option C"],
41
  "Random RAG (indirect steering with randomized context)": ["Random 1", "Random 2", "Random 3"]
42
  }
43
-
44
- choices = options.get(prompt_type, [])
45
- direct_steering_option = gr.Dropdown(choices=my_choices)
46
- print(direct_steering_option.choices)
47
- return direct_steering_option
48
 
49
  def main():
50
  description = "This is a simple interface to compare two model prodided by Anyscale. Please enter your API key and your message."
 
40
  "Most similar RAG (indirect steering with related context)": ["Option A", "Option B", "Option C"],
41
  "Random RAG (indirect steering with randomized context)": ["Random 1", "Random 2", "Random 3"]
42
  }
43
+
44
+ return gr.Dropdown.update(choices=options.get(prompt_type, [])))
45
+ #return options.get(prompt_type, []))
 
 
46
 
47
  def main():
48
  description = "This is a simple interface to compare two model prodided by Anyscale. Please enter your API key and your message."