TemryL commited on
Commit
0485c45
·
1 Parent(s): f943553

move search bar

Browse files
Files changed (2) hide show
  1. app.py +28 -27
  2. src/display/utils.py +0 -3
app.py CHANGED
@@ -151,12 +151,6 @@ with demo:
151
  with gr.TabItem("🏅 LLM Benchmark", elem_id="llm-benchmark-tab-table", id=0):
152
  with gr.Row():
153
  with gr.Column():
154
- with gr.Row():
155
- search_bar = gr.Textbox(
156
- placeholder=" 🔍 Search for your model (separate multiple queries with `;`) and press ENTER...",
157
- show_label=False,
158
- elem_id="search-bar",
159
- )
160
  with gr.Row():
161
  with gr.Column(min_width=320):
162
  shown_phenotypes = gr.CheckboxGroup(
@@ -196,27 +190,34 @@ with demo:
196
  interactive=True,
197
  )
198
  with gr.Column(min_width=320):
199
- filter_columns_type = gr.CheckboxGroup(
200
- label="Model types",
201
- choices=[t.to_str() for t in ModelType],
202
- value=[t.to_str() for t in ModelType],
203
- interactive=True,
204
- elem_id="filter-columns-type",
205
- )
206
- filter_columns_precision = gr.CheckboxGroup(
207
- label="Precision",
208
- choices=[i.value.name for i in Precision],
209
- value=[i.value.name for i in Precision],
210
- interactive=True,
211
- elem_id="filter-columns-precision",
212
- )
213
- filter_columns_size = gr.CheckboxGroup(
214
- label="Model sizes (in billions of parameters)",
215
- choices=list(NUMERIC_INTERVALS.keys()),
216
- value=list(NUMERIC_INTERVALS.keys()),
217
- interactive=True,
218
- elem_id="filter-columns-size",
219
- )
 
 
 
 
 
 
 
220
  with gr.Row():
221
  deleted_models_visibility = gr.Checkbox(
222
  value=True, label="Show gated/private/deleted models", interactive=True
 
151
  with gr.TabItem("🏅 LLM Benchmark", elem_id="llm-benchmark-tab-table", id=0):
152
  with gr.Row():
153
  with gr.Column():
 
 
 
 
 
 
154
  with gr.Row():
155
  with gr.Column(min_width=320):
156
  shown_phenotypes = gr.CheckboxGroup(
 
190
  interactive=True,
191
  )
192
  with gr.Column(min_width=320):
193
+ with gr.Row():
194
+ search_bar = gr.Textbox(
195
+ placeholder=" 🔍 Search for your model (separate multiple queries with `;`) and press ENTER...",
196
+ show_label=False,
197
+ elem_id="search-bar",
198
+ )
199
+ with gr.Column(min_width=320):
200
+ filter_columns_type = gr.CheckboxGroup(
201
+ label="Model types",
202
+ choices=[t.to_str() for t in ModelType],
203
+ value=[t.to_str() for t in ModelType],
204
+ interactive=True,
205
+ elem_id="filter-columns-type",
206
+ )
207
+ filter_columns_precision = gr.CheckboxGroup(
208
+ label="Precision",
209
+ choices=[i.value.name for i in Precision],
210
+ value=[i.value.name for i in Precision],
211
+ interactive=True,
212
+ elem_id="filter-columns-precision",
213
+ )
214
+ filter_columns_size = gr.CheckboxGroup(
215
+ label="Model sizes (in billions of parameters)",
216
+ choices=list(NUMERIC_INTERVALS.keys()),
217
+ value=list(NUMERIC_INTERVALS.keys()),
218
+ interactive=True,
219
+ elem_id="filter-columns-size",
220
+ )
221
  with gr.Row():
222
  deleted_models_visibility = gr.Checkbox(
223
  value=True, label="Show gated/private/deleted models", interactive=True
src/display/utils.py CHANGED
@@ -71,7 +71,6 @@ class ModelType(Enum):
71
  PT = ModelDetails(name="pretrained", symbol="🟢")
72
  FT = ModelDetails(name="fine-tuned", symbol="🔶")
73
  IFT = ModelDetails(name="instruction-tuned", symbol="⭕")
74
- RL = ModelDetails(name="RL-tuned", symbol="🟦")
75
  Unknown = ModelDetails(name="", symbol="?")
76
 
77
  def to_str(self, separator=" "):
@@ -83,8 +82,6 @@ class ModelType(Enum):
83
  return ModelType.FT
84
  if "pretrained" in type or "🟢" in type:
85
  return ModelType.PT
86
- if "RL-tuned" in type or "🟦" in type:
87
- return ModelType.RL
88
  if "instruction-tuned" in type or "⭕" in type:
89
  return ModelType.IFT
90
  return ModelType.Unknown
 
71
  PT = ModelDetails(name="pretrained", symbol="🟢")
72
  FT = ModelDetails(name="fine-tuned", symbol="🔶")
73
  IFT = ModelDetails(name="instruction-tuned", symbol="⭕")
 
74
  Unknown = ModelDetails(name="", symbol="?")
75
 
76
  def to_str(self, separator=" "):
 
82
  return ModelType.FT
83
  if "pretrained" in type or "🟢" in type:
84
  return ModelType.PT
 
 
85
  if "instruction-tuned" in type or "⭕" in type:
86
  return ModelType.IFT
87
  return ModelType.Unknown