gorkaartola commited on
Commit
c08723b
1 Parent(s): fa96955

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -17,13 +17,18 @@ def parse_readme(filepath):
17
  text = text[match.end() :]
18
  return text
19
 
 
 
 
 
 
20
  iface = gr.Interface(
21
  run.tp_tf_test,
22
  [
23
  gr.Radio(list(op.test_datasets.keys())),
24
  gr.Radio(list(op.metrics.keys())),
25
  gr.Radio(list(op.models.keys())),
26
- gr.Radio(list(op.queries.keys())),
27
  gr.Radio(list(op.prompts.keys())),
28
  gr.CheckboxGroup(list(op.prediction_strategy_options.keys())),
29
  ],
 
17
  text = text[match.end() :]
18
  return text
19
 
20
+ queries = []
21
+ for query_dataset in op.queries.keys():
22
+ for query_file in op.queries[query_dataset].keys():
23
+ queries.append(query_dataset+'-'+query_file)
24
+
25
  iface = gr.Interface(
26
  run.tp_tf_test,
27
  [
28
  gr.Radio(list(op.test_datasets.keys())),
29
  gr.Radio(list(op.metrics.keys())),
30
  gr.Radio(list(op.models.keys())),
31
+ gr.Radio(queries),
32
  gr.Radio(list(op.prompts.keys())),
33
  gr.CheckboxGroup(list(op.prediction_strategy_options.keys())),
34
  ],