Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	xx
Browse files- app.py +3 -0
 - src/display/utils.py +6 -6
 
    	
        app.py
    CHANGED
    
    | 
         @@ -254,12 +254,15 @@ with demo: 
     | 
|
| 254 | 
         
             
                                        interactive=True,
         
     | 
| 255 | 
         
             
                                    )
         
     | 
| 256 | 
         
             
                                with gr.Row():
         
     | 
| 
         | 
|
| 
         | 
|
| 257 | 
         
             
                                    hide_models = gr.CheckboxGroup(
         
     | 
| 258 | 
         
             
                                        label="Hide models",
         
     | 
| 259 | 
         
             
                                        choices = ["Private or deleted", "Contains a merge/moerge", "Flagged", "MoE"],
         
     | 
| 260 | 
         
             
                                        value=[],
         
     | 
| 261 | 
         
             
                                        interactive=True
         
     | 
| 262 | 
         
             
                                    )
         
     | 
| 
         | 
|
| 263 | 
         
             
                            with gr.Column(min_width=320):
         
     | 
| 264 | 
         
             
                                #with gr.Box(elem_id="box-filter"):
         
     | 
| 265 | 
         
             
                                filter_columns_type = gr.CheckboxGroup(
         
     | 
| 
         | 
|
| 254 | 
         
             
                                        interactive=True,
         
     | 
| 255 | 
         
             
                                    )
         
     | 
| 256 | 
         
             
                                with gr.Row():
         
     | 
| 257 | 
         
            +
                                    pass
         
     | 
| 258 | 
         
            +
                                    """
         
     | 
| 259 | 
         
             
                                    hide_models = gr.CheckboxGroup(
         
     | 
| 260 | 
         
             
                                        label="Hide models",
         
     | 
| 261 | 
         
             
                                        choices = ["Private or deleted", "Contains a merge/moerge", "Flagged", "MoE"],
         
     | 
| 262 | 
         
             
                                        value=[],
         
     | 
| 263 | 
         
             
                                        interactive=True
         
     | 
| 264 | 
         
             
                                    )
         
     | 
| 265 | 
         
            +
                                    """
         
     | 
| 266 | 
         
             
                            with gr.Column(min_width=320):
         
     | 
| 267 | 
         
             
                                #with gr.Box(elem_id="box-filter"):
         
     | 
| 268 | 
         
             
                                filter_columns_type = gr.CheckboxGroup(
         
     | 
    	
        src/display/utils.py
    CHANGED
    
    | 
         @@ -32,15 +32,15 @@ for task in Tasks: 
     | 
|
| 32 | 
         
             
                auto_eval_column_dict.append([task.name, ColumnContent, ColumnContent(task.value.col_name, "number", True)])
         
     | 
| 33 | 
         
             
            # Model information
         
     | 
| 34 | 
         
             
            auto_eval_column_dict.append(["model_type", ColumnContent, ColumnContent("Type", "str", False)])
         
     | 
| 35 | 
         
            -
            auto_eval_column_dict.append(["architecture", ColumnContent, ColumnContent("Architecture", "str", False)])
         
     | 
| 36 | 
         
             
            auto_eval_column_dict.append(["weight_type", ColumnContent, ColumnContent("Weight type", "str", False, True)])
         
     | 
| 37 | 
         
             
            auto_eval_column_dict.append(["precision", ColumnContent, ColumnContent("Precision", "str", False)])
         
     | 
| 38 | 
         
            -
            auto_eval_column_dict.append(["license", ColumnContent, ColumnContent("Hub License", "str", False)])
         
     | 
| 39 | 
         
             
            auto_eval_column_dict.append(["params", ColumnContent, ColumnContent("#Params (B)", "number", False)])
         
     | 
| 40 | 
         
            -
            auto_eval_column_dict.append(["likes", ColumnContent, ColumnContent("Hub ❤️", "number", False)])
         
     | 
| 41 | 
         
            -
            auto_eval_column_dict.append(["still_on_hub", ColumnContent, ColumnContent("Available on the hub", "bool", False)])
         
     | 
| 42 | 
         
            -
            auto_eval_column_dict.append(["revision", ColumnContent, ColumnContent("Model sha", "str", False, False)])
         
     | 
| 43 | 
         
            -
            auto_eval_column_dict.append(["merged", ColumnContent, ColumnContent("Merged", "bool", False)])
         
     | 
| 44 | 
         
             
            auto_eval_column_dict.append(["flagged", ColumnContent, ColumnContent("Flagged", "bool", False, hidden=True)])
         
     | 
| 45 | 
         
             
            auto_eval_column_dict.append(["moe", ColumnContent, ColumnContent("MoE", "bool", False, hidden=True)])
         
     | 
| 46 | 
         
             
            # Dummy column for the search bar (hidden by the custom CSS)
         
     | 
| 
         | 
|
| 32 | 
         
             
                auto_eval_column_dict.append([task.name, ColumnContent, ColumnContent(task.value.col_name, "number", True)])
         
     | 
| 33 | 
         
             
            # Model information
         
     | 
| 34 | 
         
             
            auto_eval_column_dict.append(["model_type", ColumnContent, ColumnContent("Type", "str", False)])
         
     | 
| 35 | 
         
            +
            #auto_eval_column_dict.append(["architecture", ColumnContent, ColumnContent("Architecture", "str", False)])
         
     | 
| 36 | 
         
             
            auto_eval_column_dict.append(["weight_type", ColumnContent, ColumnContent("Weight type", "str", False, True)])
         
     | 
| 37 | 
         
             
            auto_eval_column_dict.append(["precision", ColumnContent, ColumnContent("Precision", "str", False)])
         
     | 
| 38 | 
         
            +
            #auto_eval_column_dict.append(["license", ColumnContent, ColumnContent("Hub License", "str", False)])
         
     | 
| 39 | 
         
             
            auto_eval_column_dict.append(["params", ColumnContent, ColumnContent("#Params (B)", "number", False)])
         
     | 
| 40 | 
         
            +
            #auto_eval_column_dict.append(["likes", ColumnContent, ColumnContent("Hub ❤️", "number", False)])
         
     | 
| 41 | 
         
            +
            #auto_eval_column_dict.append(["still_on_hub", ColumnContent, ColumnContent("Available on the hub", "bool", False)])
         
     | 
| 42 | 
         
            +
            #auto_eval_column_dict.append(["revision", ColumnContent, ColumnContent("Model sha", "str", False, False)])
         
     | 
| 43 | 
         
            +
            #auto_eval_column_dict.append(["merged", ColumnContent, ColumnContent("Merged", "bool", False)])
         
     | 
| 44 | 
         
             
            auto_eval_column_dict.append(["flagged", ColumnContent, ColumnContent("Flagged", "bool", False, hidden=True)])
         
     | 
| 45 | 
         
             
            auto_eval_column_dict.append(["moe", ColumnContent, ColumnContent("MoE", "bool", False, hidden=True)])
         
     | 
| 46 | 
         
             
            # Dummy column for the search bar (hidden by the custom CSS)
         
     |