Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
21 |
return filtered_df
|
22 |
|
23 |
demo = gr.Interface(
|
24 |
fn=filter_dataframe,
|
25 |
inputs=[
|
26 |
-
gr.Dropdown(choices=
|
27 |
-
gr.Dropdown(choices=
|
28 |
],
|
29 |
-
outputs=gr.Dataframe(headers=list(
|
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 |
)
|