julien-c HF staff commited on
Commit
35237ea
1 Parent(s): 4a3daec

`licenses:` => `license:`

Browse files
Files changed (2) hide show
  1. apputils.py +1 -1
  2. 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
- "licenses": [],
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
- # LICENSES
301
  #
302
- state["licenses"] = multiselect(
303
  leftcol,
304
- "Licenses",
305
- "What licenses is the dataset under?",
306
  valid_set=list(known_licenses.keys()),
307
- values=state["licenses"],
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
  #