Upload folder using huggingface_hub
Browse files- Backup/Utils/platform-tools-latest-windows/platform-tools/AdbWinUsbApi.dll +0 -0
- Backup/Utils/platform-tools-latest-windows/platform-tools/hprof-conv.exe +0 -0
- Windows/AutoO/Content/Paks/global.utoc +0 -0
- Windows/AutoO/Plugins/scrcpy/ThirdParty/scrcpy-win64-v3.3.4/scrcpy-win64-v3.3.4/AdbWinUsbApi.dll +0 -0
- Windows/AutoO/Plugins/scrcpy/ThirdParty/scrcpy-win64-v3.3.4/scrcpy-win64-v3.3.4/icon.png +0 -0
- Windows/Engine/Binaries/ThirdParty/Ogg/Win64/VS2015/libogg_64.dll +0 -0
- Windows/Engine/Binaries/ThirdParty/Vorbis/Win64/VS2015/libvorbisfile_64.dll +0 -0
- Windows/Utils/platform-tools-latest-windows/platform-tools/AdbWinUsbApi.dll +0 -0
- Windows/Utils/platform-tools-latest-windows/platform-tools/hprof-conv.exe +0 -0
- hf-upload.ps1 +0 -48
Backup/Utils/platform-tools-latest-windows/platform-tools/AdbWinUsbApi.dll
CHANGED
|
Binary files a/Backup/Utils/platform-tools-latest-windows/platform-tools/AdbWinUsbApi.dll and b/Backup/Utils/platform-tools-latest-windows/platform-tools/AdbWinUsbApi.dll differ
|
|
|
Backup/Utils/platform-tools-latest-windows/platform-tools/hprof-conv.exe
CHANGED
|
Binary files a/Backup/Utils/platform-tools-latest-windows/platform-tools/hprof-conv.exe and b/Backup/Utils/platform-tools-latest-windows/platform-tools/hprof-conv.exe differ
|
|
|
Windows/AutoO/Content/Paks/global.utoc
CHANGED
|
Binary files a/Windows/AutoO/Content/Paks/global.utoc and b/Windows/AutoO/Content/Paks/global.utoc differ
|
|
|
Windows/AutoO/Plugins/scrcpy/ThirdParty/scrcpy-win64-v3.3.4/scrcpy-win64-v3.3.4/AdbWinUsbApi.dll
CHANGED
|
Binary files a/Windows/AutoO/Plugins/scrcpy/ThirdParty/scrcpy-win64-v3.3.4/scrcpy-win64-v3.3.4/AdbWinUsbApi.dll and b/Windows/AutoO/Plugins/scrcpy/ThirdParty/scrcpy-win64-v3.3.4/scrcpy-win64-v3.3.4/AdbWinUsbApi.dll differ
|
|
|
Windows/AutoO/Plugins/scrcpy/ThirdParty/scrcpy-win64-v3.3.4/scrcpy-win64-v3.3.4/icon.png
CHANGED
|
|
Git LFS Details
|
|
|
Windows/Engine/Binaries/ThirdParty/Ogg/Win64/VS2015/libogg_64.dll
CHANGED
|
Binary files a/Windows/Engine/Binaries/ThirdParty/Ogg/Win64/VS2015/libogg_64.dll and b/Windows/Engine/Binaries/ThirdParty/Ogg/Win64/VS2015/libogg_64.dll differ
|
|
|
Windows/Engine/Binaries/ThirdParty/Vorbis/Win64/VS2015/libvorbisfile_64.dll
CHANGED
|
Binary files a/Windows/Engine/Binaries/ThirdParty/Vorbis/Win64/VS2015/libvorbisfile_64.dll and b/Windows/Engine/Binaries/ThirdParty/Vorbis/Win64/VS2015/libvorbisfile_64.dll differ
|
|
|
Windows/Utils/platform-tools-latest-windows/platform-tools/AdbWinUsbApi.dll
CHANGED
|
Binary files a/Windows/Utils/platform-tools-latest-windows/platform-tools/AdbWinUsbApi.dll and b/Windows/Utils/platform-tools-latest-windows/platform-tools/AdbWinUsbApi.dll differ
|
|
|
Windows/Utils/platform-tools-latest-windows/platform-tools/hprof-conv.exe
CHANGED
|
Binary files a/Windows/Utils/platform-tools-latest-windows/platform-tools/hprof-conv.exe and b/Windows/Utils/platform-tools-latest-windows/platform-tools/hprof-conv.exe differ
|
|
|
hf-upload.ps1
DELETED
|
@@ -1,48 +0,0 @@
|
|
| 1 |
-
param(
|
| 2 |
-
[string]$RepoId,
|
| 3 |
-
[string]$LocalPath = ".",
|
| 4 |
-
[ValidateSet("dataset", "model", "space")]
|
| 5 |
-
[string]$RepoType,
|
| 6 |
-
[switch]$DryRun
|
| 7 |
-
)
|
| 8 |
-
|
| 9 |
-
if ([string]::IsNullOrWhiteSpace($RepoId)) {
|
| 10 |
-
Write-Error "RepoId is required. Usage: .\hf-upload.ps1 <repo_id> [local_path] -RepoType <dataset|model|space> [-DryRun]"
|
| 11 |
-
exit 1
|
| 12 |
-
}
|
| 13 |
-
|
| 14 |
-
if ([string]::IsNullOrWhiteSpace($RepoType)) {
|
| 15 |
-
Write-Error "RepoType is required. Pass -RepoType dataset, -RepoType model, or -RepoType space explicitly."
|
| 16 |
-
exit 1
|
| 17 |
-
}
|
| 18 |
-
|
| 19 |
-
$gitignorePath = Join-Path $LocalPath ".gitignore"
|
| 20 |
-
|
| 21 |
-
if (-not (Test-Path $gitignorePath)) {
|
| 22 |
-
Write-Error ".gitignore not found at $gitignorePath"
|
| 23 |
-
exit 1
|
| 24 |
-
}
|
| 25 |
-
|
| 26 |
-
$patterns = Get-Content $gitignorePath |
|
| 27 |
-
Where-Object { $_ -notmatch '^\s*#' } |
|
| 28 |
-
Where-Object { $_ -notmatch '^\s*$' } |
|
| 29 |
-
ForEach-Object { $_.Trim() } |
|
| 30 |
-
Where-Object { -not $_.StartsWith('!') } |
|
| 31 |
-
ForEach-Object { if ($_.EndsWith('/')) { $_ + '**' } else { $_ } } |
|
| 32 |
-
ForEach-Object { $_.TrimStart('/') }
|
| 33 |
-
# hf upload 的 --exclude 是用 fnmatch 比對「相對路徑」(不含開頭斜線)。
|
| 34 |
-
# .gitignore 的根目錄錨定語法(leading "/", 例如 "/Binaries/") 若原封不動
|
| 35 |
-
# 轉成 --exclude="/Binaries/**",會因為實際路徑沒有開頭斜線而永遠比對不到,
|
| 36 |
-
# 導致規則形同虛設。這裡統一移除開頭斜線;因為 fnmatch 本來就是整串比對,
|
| 37 |
-
# 去掉斜線後的 "Binaries/**" 本身已經等同「只比對根目錄開頭」,效果不變。
|
| 38 |
-
|
| 39 |
-
$ignoreArgs = $patterns | ForEach-Object { "--exclude=`"$_`"" }
|
| 40 |
-
|
| 41 |
-
$cmd = "hf upload $RepoId $LocalPath --repo-type=$RepoType --delete=`"*`" " + ($ignoreArgs -join " ")
|
| 42 |
-
|
| 43 |
-
if ($DryRun) {
|
| 44 |
-
Write-Host "[dry-run] $cmd"
|
| 45 |
-
} else {
|
| 46 |
-
Write-Host "Running: $cmd"
|
| 47 |
-
Invoke-Expression $cmd
|
| 48 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|