Cannot upload my own dataset
{'login': 'korakot', 'id': 3155646, 'node_id': 'MDQ6VXNlcjMxNTU2NDY=', 'avatar_url': 'https://avatars.githubusercontent.com/u/3155646?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/korakot', 'html_url': 'https://github.com/korakot', 'followers_url': 'https://api.github.com/users/korakot/followers', 'following_url': 'https://api.github.com/users/korakot/following{/other_user}', 'gists_url': 'https://api.github.com/users/korakot/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/korakot/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/korakot/subscriptions', 'organizations_url': 'https://api.github.com/users/korakot/orgs', 'repos_url': 'https://api.github.com/users/korakot/repos', 'events_url': 'https://api.github.com/users/korakot/events{/privacy}', 'received_events_url': 'https://api.github.com/users/korakot/received_events', 'type': 'User', 'site_admin': False}
[]
[]
["It's my misunderstanding. I cannot just upload a csv. I need to write a dataset loading script too."
 'I now try with the sample `datasets/csv` folder. \r\n\r\n    nlp-cli upload csv\r\n\r\nThe error is still the same\r\n\r\n```\r\n2020-05-21 17:20:56.394659: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\r\nAbout to upload file /content/csv/csv.py to S3 under filename csv/csv.py and namespace korakot\r\nAbout to upload file /content/csv/dummy/0.0.0/dummy_data.zip to S3 under filename csv/dummy/0.0.0/dummy_data.zip and namespace korakot\r\nProceed? [Y/n] y\r\nUploading... This might take a while if files are large\r\nTraceback (most recent call last):\r\n  File "/usr/local/bin/nlp-cli", line 33, in <module>\r\n    service.run()\r\n  File "/usr/local/lib/python3.6/dist-packages/nlp/commands/user.py", line 234, in run\r\n    token=token, filename=filename, filepath=filepath, organization=self.args.organization\r\n  File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 141, in presign_and_upload\r\n    urls = self.presign(token, filename=filename, organization=organization)\r\n  File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 132, in presign\r\n    return PresignedUrl(**d)\r\nTypeError: __init__() got an unexpected keyword argument \'cdn\'\r\n```\r\n'
 "We haven't tested the dataset upload feature yet cc @julien-c \r\nThis is on our short/mid-term roadmap though"
 "Even if I fix the `TypeError: __init__() got an unexpected keyword argument 'cdn'` error, it looks like it still uploads to                                                                                                                               `https://s3.amazonaws.com/models.huggingface.co/bert/<namespace>/<dataset_name>` instead of `https://s3.amazonaws.com/datasets.huggingface.co/nlp/<namespace>/<dataset_name>`"
 "@lhoestq The endpoints in https://github.com/huggingface/nlp/blob/master/src/nlp/hf_api.py should be (depending on the type of file):\r\n```\r\nPOST   /api/datasets/presign\r\nGET    /api/datasets/listObjs\r\nDELETE /api/datasets/deleteObj\r\nPOST   /api/metrics/presign  \r\nGET    /api/metrics/listObjs\r\nDELETE /api/metrics/deleteObj\r\n```\r\n\r\nIn addition to this, @thomwolf cleaned up the objects with dataclasses but you should revert this and re-align to the hf_api that's in this branch of transformers: https://github.com/huggingface/transformers/pull/4632 (so that potential new JSON attributes in the API output don't break existing versions of any library)"
 'New commands are\r\n```\r\nnlp-cli upload_dataset <path/to/dataset>\r\nnlp-cli upload_metric <path/to/metric>\r\nnlp-cli s3_datasets {rm, ls}\r\nnlp-cli s3_metrics {rm, ls}\r\n```\r\nClosing this issue.']
I look into `nlp-cli` and `user.py` to learn how to upload my own data.

It is supposed to work like this
- Register to get username, password at huggingface.co
- `nlp-cli login` and type username, passworld
- I have a single file to upload at `./ttc/ttc_freq_extra.csv`
- `nlp-cli upload ttc/ttc_freq_extra.csv`

But I got this error.

```
2020-05-21 16:33:52.722464: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1
About to upload file /content/ttc/ttc_freq_extra.csv to S3 under filename ttc/ttc_freq_extra.csv and namespace korakot
Proceed? [Y/n] y
Uploading... This might take a while if files are large
Traceback (most recent call last):
  File "/usr/local/bin/nlp-cli", line 33, in <module>
    service.run()
  File "/usr/local/lib/python3.6/dist-packages/nlp/commands/user.py", line 234, in run
    token=token, filename=filename, filepath=filepath, organization=self.args.organization
  File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 141, in presign_and_upload
    urls = self.presign(token, filename=filename, organization=organization)
  File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 132, in presign
    return PresignedUrl(**d)
TypeError: __init__() got an unexpected keyword argument 'cdn'
```
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/181/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}