Spaces:
Running
on
Zero
Running
on
Zero
| # Upload Dataset README to HuggingFace | |
| # This uploads the Dataset Card to Gamahea/lemm-dataset | |
| Write-Host "π€ Uploading Dataset Card to Gamahea/lemm-dataset..." -ForegroundColor Cyan | |
| # Check if huggingface_hub is installed | |
| python -c "import huggingface_hub" 2>$null | |
| if ($LASTEXITCODE -ne 0) { | |
| Write-Host "β huggingface_hub not installed. Installing..." -ForegroundColor Yellow | |
| pip install huggingface-hub | |
| } | |
| # Upload README to dataset repo | |
| python -c @" | |
| from huggingface_hub import HfApi | |
| from pathlib import Path | |
| api = HfApi() | |
| # Upload README as Dataset Card | |
| try: | |
| 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!') | |
| except Exception as e: | |
| print(f'β Upload failed: {e}') | |
| print('π‘ Make sure you are logged in: huggingface-cli login') | |
| "@ | |
| Write-Host "`nβ Done! Check https://huggingface.co/datasets/Gamahea/lemm-dataset" -ForegroundColor Green | |