Spaces:
Runtime error
Runtime error
model -> repo
Browse filesI guess the docs got updated at https://huggingface.co/docs/hub/repositories-licenses
- 1_π_form.py +1 -1
1_π_form.py
CHANGED
@@ -20,7 +20,7 @@ def get_cached_data():
|
|
20 |
|
21 |
license_df = pd.read_html("https://huggingface.co/docs/hub/repositories-licenses")[0]
|
22 |
license_map = pd.Series(
|
23 |
-
license_df["License identifier (to use in
|
24 |
).to_dict()
|
25 |
|
26 |
available_metrics = [x['id'] for x in requests.get('https://huggingface.co/api/metrics').json()]
|
|
|
20 |
|
21 |
license_df = pd.read_html("https://huggingface.co/docs/hub/repositories-licenses")[0]
|
22 |
license_map = pd.Series(
|
23 |
+
license_df["License identifier (to use in repo card)"].values, index=license_df.Fullname
|
24 |
).to_dict()
|
25 |
|
26 |
available_metrics = [x['id'] for x in requests.get('https://huggingface.co/api/metrics').json()]
|