katielink commited on
Commit
4628125
1 Parent(s): 34e7b9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -12
app.py CHANGED
@@ -31,15 +31,22 @@ def main():
31
  'Model Weights',
32
  ], label='Filter')
33
 
34
- # data_type_names = [
35
- # 'Biomedical',
36
- # 'Clinical',
37
- # 'Scientific',
38
- # ]
39
-
40
- # data_types = gr.CheckboxGroup(choices=data_type_names,
41
- # value=data_type_names,
42
- # label='Training Data Type(s)')
 
 
 
 
 
 
 
43
 
44
  search_button = gr.Button('Search')
45
 
@@ -54,7 +61,8 @@ def main():
54
  search_box,
55
  case_sensitive,
56
  filter_names,
57
- #data_types,
 
58
  ],
59
  outputs=[
60
  number_of_models,
@@ -65,7 +73,8 @@ def main():
65
  search_box,
66
  case_sensitive,
67
  filter_names,
68
- #data_types,
 
69
  ],
70
  outputs=[
71
  number_of_models,
@@ -77,7 +86,8 @@ def main():
77
  search_box,
78
  case_sensitive,
79
  filter_names,
80
- #data_types,
 
81
  ],
82
  outputs=[
83
  number_of_models,
 
31
  'Model Weights',
32
  ], label='Filter')
33
 
34
+ data_type_names = [
35
+ 'DNA', 'scRNA', 'protein language model', 'protein folding', 'protein generation', 'antibody folding', 'molecules',
36
+ 'protein-to-ligand', 'reaction-to-enzyme', 'enzyme generation',
37
+ ]
38
+
39
+ data_types = gr.CheckboxGroup(choices=data_type_names,
40
+ value=data_type_names,
41
+ label='Type')
42
+
43
+ model_type_names = [
44
+ 'GPT2', 'GPT-Neo', 'GPT-NeoX', 'ESM', 'BERT', 'RoBERTa', 'BART', 'T5', 'MPNN', 'diffusion', 'custom model'
45
+ ]
46
+
47
+ model_types = gr.CheckboxGroup(choices=model_type_names,
48
+ value=model_type_names,
49
+ label='Base Model')
50
 
51
  search_button = gr.Button('Search')
52
 
 
61
  search_box,
62
  case_sensitive,
63
  filter_names,
64
+ data_types,
65
+ model_types
66
  ],
67
  outputs=[
68
  number_of_models,
 
73
  search_box,
74
  case_sensitive,
75
  filter_names,
76
+ data_types,
77
+ model_types
78
  ],
79
  outputs=[
80
  number_of_models,
 
86
  search_box,
87
  case_sensitive,
88
  filter_names,
89
+ data_types,
90
+ model_types
91
  ],
92
  outputs=[
93
  number_of_models,