model -> repo (#11)
Browse files- model -> repo (47afb72dd43848298c6ec17673550d338fed6e6c)
- 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()]
|