Updated the License identifier key name
#1
by
vss-arch
- opened
- 1_📝_form.py +1 -1
1_📝_form.py
CHANGED
@@ -12,7 +12,7 @@ def get_cached_data():
|
|
12 |
|
13 |
license_df = pd.read_html("https://huggingface.co/docs/hub/repositories-licenses")[0]
|
14 |
license_map = pd.Series(
|
15 |
-
license_df["License identifier (to use in
|
16 |
).to_dict()
|
17 |
|
18 |
available_metrics = [x['id'] for x in requests.get('https://huggingface.co/api/metrics').json()]
|
|
|
12 |
|
13 |
license_df = pd.read_html("https://huggingface.co/docs/hub/repositories-licenses")[0]
|
14 |
license_map = pd.Series(
|
15 |
+
license_df["License identifier (to use in repo card)"].values, index=license_df.Fullname
|
16 |
).to_dict()
|
17 |
|
18 |
available_metrics = [x['id'] for x in requests.get('https://huggingface.co/api/metrics').json()]
|