Spaces:
Runtime error
Runtime error
Update utils.py
#37
by
Achitha
- opened
utils.py
CHANGED
@@ -62,8 +62,8 @@ def http_get(path: str, domain: str, token: str = None, params: dict = None) ->
|
|
62 |
return response
|
63 |
|
64 |
|
65 |
-
def get_metadata(dataset_name: str, token:
|
66 |
-
data = dataset_info(dataset_name, token=
|
67 |
if data.cardData is not None and "train-eval-index" in data.cardData.keys():
|
68 |
return data.cardData["train-eval-index"]
|
69 |
else:
|
|
|
62 |
return response
|
63 |
|
64 |
|
65 |
+
def get_metadata(dataset_name: str, token: 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) -> Union[Dict, None]:
|
66 |
+
data = dataset_info(dataset_name, token=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)
|
67 |
if data.cardData is not None and "train-eval-index" in data.cardData.keys():
|
68 |
return data.cardData["train-eval-index"]
|
69 |
else:
|