Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	`licenses:` => `license:`
Browse files- apputils.py +1 -1
- tagging_app.py +5 -12
    	
        apputils.py
    CHANGED
    
    | @@ -11,6 +11,6 @@ def new_state() -> Dict[str, List]: | |
| 11 | 
             
                    "annotations_creators": [],
         | 
| 12 | 
             
                    "source_datasets": [],
         | 
| 13 | 
             
                    "size_categories": [],
         | 
| 14 | 
            -
                    " | 
| 15 | 
             
                    "pretty_name": None,
         | 
| 16 | 
             
                }
         | 
|  | |
| 11 | 
             
                    "annotations_creators": [],
         | 
| 12 | 
             
                    "source_datasets": [],
         | 
| 13 | 
             
                    "size_categories": [],
         | 
| 14 | 
            +
                    "license": [],
         | 
| 15 | 
             
                    "pretty_name": None,
         | 
| 16 | 
             
                }
         | 
    	
        tagging_app.py
    CHANGED
    
    | @@ -297,23 +297,16 @@ state["annotations_creators"] = multiselect( | |
| 297 |  | 
| 298 |  | 
| 299 | 
             
            #
         | 
| 300 | 
            -
            #  | 
| 301 | 
             
            #
         | 
| 302 | 
            -
            state[" | 
| 303 | 
             
                leftcol,
         | 
| 304 | 
            -
                " | 
| 305 | 
            -
                "What  | 
| 306 | 
             
                valid_set=list(known_licenses.keys()),
         | 
| 307 | 
            -
                values=state[" | 
| 308 | 
             
                format_func=lambda l: f"{l} : {known_licenses[l]}",
         | 
| 309 | 
             
            )
         | 
| 310 | 
            -
            if "other" in state["licenses"]:
         | 
| 311 | 
            -
                other_license = st.text_input(
         | 
| 312 | 
            -
                    "You selected 'other' type of license. Please enter a short hyphen-separated description:",
         | 
| 313 | 
            -
                    value="my-license",
         | 
| 314 | 
            -
                )
         | 
| 315 | 
            -
                st.write(f"Registering other-{other_license} license")
         | 
| 316 | 
            -
                state["licenses"][state["licenses"].index("other")] = f"other-{other_license}"
         | 
| 317 |  | 
| 318 |  | 
| 319 | 
             
            #
         | 
|  | |
| 297 |  | 
| 298 |  | 
| 299 | 
             
            #
         | 
| 300 | 
            +
            # LICENSE
         | 
| 301 | 
             
            #
         | 
| 302 | 
            +
            state["license"] = multiselect(
         | 
| 303 | 
             
                leftcol,
         | 
| 304 | 
            +
                "License",
         | 
| 305 | 
            +
                "What license(s) is the dataset under?",
         | 
| 306 | 
             
                valid_set=list(known_licenses.keys()),
         | 
| 307 | 
            +
                values=state["license"],
         | 
| 308 | 
             
                format_func=lambda l: f"{l} : {known_licenses[l]}",
         | 
| 309 | 
             
            )
         | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 310 |  | 
| 311 |  | 
| 312 | 
             
            #
         | 

