Spaces:
Running
on
Zero
Running
on
Zero
| """ | |
| Upload Dataset README to HuggingFace lemm-dataset repo | |
| """ | |
| from huggingface_hub import HfApi | |
| from pathlib import Path | |
| def main(): | |
| api = HfApi() | |
| print("π€ Uploading Dataset Card to Gamahea/lemm-dataset...") | |
| try: | |
| # Upload README as Dataset Card | |
| api.upload_file( | |
| repo_id='Gamahea/lemm-dataset', | |
| repo_type='dataset', | |
| path_or_fileobj='DATASET_README.md', | |
| path_in_repo='README.md', | |
| commit_message='Add comprehensive Dataset Card documentation' | |
| ) | |
| print('β Dataset Card uploaded successfully!') | |
| print('π View at: https://huggingface.co/datasets/Gamahea/lemm-dataset') | |
| except Exception as e: | |
| print(f'β Upload failed: {e}') | |
| print('π‘ Make sure you are logged in: huggingface-cli login') | |
| return 1 | |
| return 0 | |
| if __name__ == '__main__': | |
| exit(main()) | |