stevhliu HF staff commited on
Commit
badb5a3
1 Parent(s): c58ee2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -17,16 +17,16 @@ def filter_by_hardware_or_bits(df, hardware=None, bits=None):
17
  return filtered_df
18
 
19
  def filter_dataframe(hardware, bits):
20
- filtered_df = filter_by_hardware_or_bits(quantization, hardware=hardware, bits=bits)
21
  return filtered_df
22
 
23
  demo = gr.Interface(
24
  fn=filter_dataframe,
25
  inputs=[
26
- gr.Dropdown(choices=quantization['hardware'].unique().tolist(), label="hardware"),
27
- gr.Dropdown(choices=quantization['bits'].unique().tolist(), label="bits"),
28
  ],
29
- outputs=gr.Dataframe(headers=list(quantization.columns)),
30
  title="Quantization methods",
31
  description="Pick a quantization method based on your hardware and k-bit quantization."
32
  )
 
17
  return filtered_df
18
 
19
  def filter_dataframe(hardware, bits):
20
+ filtered_df = filter_by_hardware_or_bits(df, hardware=hardware, bits=bits)
21
  return filtered_df
22
 
23
  demo = gr.Interface(
24
  fn=filter_dataframe,
25
  inputs=[
26
+ gr.Dropdown(choices=df['hardware'].unique().tolist(), label="hardware"),
27
+ gr.Dropdown(choices=df['bits'].unique().tolist(), label="bits"),
28
  ],
29
+ outputs=gr.Dataframe(headers=list(df.columns)),
30
  title="Quantization methods",
31
  description="Pick a quantization method based on your hardware and k-bit quantization."
32
  )