Upload dataset.py with huggingface_hub
Browse files- dataset.py +2 -1
dataset.py
CHANGED
@@ -12,6 +12,7 @@ from .dataclass import __file__ as _
|
|
12 |
from .file_utils import __file__ as _
|
13 |
from .fusion import __file__ as _
|
14 |
from .generator_utils import __file__ as _
|
|
|
15 |
from .instructions import __file__ as _
|
16 |
from .load import __file__ as _
|
17 |
from .loaders import __file__ as _
|
@@ -31,6 +32,7 @@ from .stream import __file__ as _
|
|
31 |
from .task import __file__ as _
|
32 |
from .templates import __file__ as _
|
33 |
from .text_utils import __file__ as _
|
|
|
34 |
from .utils import __file__ as _
|
35 |
from .validate import __file__ as _
|
36 |
|
@@ -47,7 +49,6 @@ def parse(query: str):
|
|
47 |
"""
|
48 |
Parses a query of the form 'key1=value1,key2=value2,...' into a dictionary.
|
49 |
"""
|
50 |
-
query = query.replace("@", "::")
|
51 |
result = {}
|
52 |
for kv in query.split(","):
|
53 |
parts = kv.split("=")
|
|
|
12 |
from .file_utils import __file__ as _
|
13 |
from .fusion import __file__ as _
|
14 |
from .generator_utils import __file__ as _
|
15 |
+
from .hf_utils import __file__ as _
|
16 |
from .instructions import __file__ as _
|
17 |
from .load import __file__ as _
|
18 |
from .loaders import __file__ as _
|
|
|
32 |
from .task import __file__ as _
|
33 |
from .templates import __file__ as _
|
34 |
from .text_utils import __file__ as _
|
35 |
+
from .type_utils import __file__ as _
|
36 |
from .utils import __file__ as _
|
37 |
from .validate import __file__ as _
|
38 |
|
|
|
49 |
"""
|
50 |
Parses a query of the form 'key1=value1,key2=value2,...' into a dictionary.
|
51 |
"""
|
|
|
52 |
result = {}
|
53 |
for kv in query.split(","):
|
54 |
parts = kv.split("=")
|