Update utils.py

#37
by Achitha - opened
Files changed (1) hide show
  1. utils.py +2 -2
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: str) -> Union[Dict, None]:
66
- data = dataset_info(dataset_name, token=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: