Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F61996353
upload_models.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, May 10, 07:04
Size
292 B
Mime Type
text/x-shellscript
Expires
Sun, May 12, 07:04 (2 d)
Engine
blob
Format
Raw Data
Handle
17588469
Attached To
R11484 ADDI
upload_models.sh
View Options
#!/bin/bash
for
FILE in converted/*;
do
model_name
=
`
basename
$FILE
`
transformers-cli repo create
$model_name
-y
git clone https://huggingface.co/Helsinki-NLP/
$model_name
mv
$FILE
/*
$model_name
/
cd
$model_name
git add .
&&
git commit -m
"initial commit"
git push
cd
..
done
Event Timeline
Log In to Comment