Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def quant_update_Weight_Dtype(selected_precisions):
|
|
74 |
else:
|
75 |
if any(dtype in ['float16', 'bfloat16', 'float32'] for dtype in current_weightDtype):
|
76 |
current_weightDtype = [dtype for dtype in current_weightDtype if dtype not in ['float16', 'bfloat16', 'float32']]
|
77 |
-
return gr.Dropdown
|
78 |
|
79 |
|
80 |
def update_Weight_Dtype(selected_precisions):
|
@@ -85,7 +85,7 @@ def update_Weight_Dtype(selected_precisions):
|
|
85 |
|
86 |
if not selected_precisions: # If no precision is selected, return "All"
|
87 |
selected_dtypes = ["All"]
|
88 |
-
return gr.Dropdown
|
89 |
|
90 |
selected_dtypes_set = set()
|
91 |
for precision in selected_precisions:
|
@@ -102,7 +102,7 @@ def update_Weight_Dtype(selected_precisions):
|
|
102 |
|
103 |
|
104 |
current_weightDtype = display_choices
|
105 |
-
return gr.Dropdown
|
106 |
|
107 |
|
108 |
|
|
|
74 |
else:
|
75 |
if any(dtype in ['float16', 'bfloat16', 'float32'] for dtype in current_weightDtype):
|
76 |
current_weightDtype = [dtype for dtype in current_weightDtype if dtype not in ['float16', 'bfloat16', 'float32']]
|
77 |
+
return gr.Dropdown(choices=current_weightDtype, value="All")
|
78 |
|
79 |
|
80 |
def update_Weight_Dtype(selected_precisions):
|
|
|
85 |
|
86 |
if not selected_precisions: # If no precision is selected, return "All"
|
87 |
selected_dtypes = ["All"]
|
88 |
+
return gr.Dropdown(choices=["All"], value="All")
|
89 |
|
90 |
selected_dtypes_set = set()
|
91 |
for precision in selected_precisions:
|
|
|
102 |
|
103 |
|
104 |
current_weightDtype = display_choices
|
105 |
+
return gr.Dropdown(choices=display_choices, value="All")
|
106 |
|
107 |
|
108 |
|