gabrielaltay
commited on
Commit
•
dfa3a35
1
Parent(s):
85638fe
Update license.py
Browse files- license.py +1 -4
license.py
CHANGED
@@ -4,14 +4,11 @@
|
|
4 |
License objects.
|
5 |
"""
|
6 |
|
7 |
-
import importlib.resources as pkg_resources
|
8 |
import json
|
9 |
from dataclasses import dataclass
|
10 |
from types import SimpleNamespace
|
11 |
from typing import Dict, Optional
|
12 |
|
13 |
-
from bigbio.utils import resources
|
14 |
-
|
15 |
|
16 |
@dataclass
|
17 |
class License:
|
@@ -288,7 +285,7 @@ def load_json_licenses() -> Dict[str, str]:
|
|
288 |
licenses = {
|
289 |
_get_variable_name(k): v
|
290 |
for k, v in json.loads(
|
291 |
-
|
292 |
).items()
|
293 |
}
|
294 |
|
|
|
4 |
License objects.
|
5 |
"""
|
6 |
|
|
|
7 |
import json
|
8 |
from dataclasses import dataclass
|
9 |
from types import SimpleNamespace
|
10 |
from typing import Dict, Optional
|
11 |
|
|
|
|
|
12 |
|
13 |
@dataclass
|
14 |
class License:
|
|
|
285 |
licenses = {
|
286 |
_get_variable_name(k): v
|
287 |
for k, v in json.loads(
|
288 |
+
open("licenses.json", "r").read()
|
289 |
).items()
|
290 |
}
|
291 |
|