update tatoeba workflow (#9051)
This commit is contained in:
12
scripts/tatoeba/upload_models.sh
Executable file
12
scripts/tatoeba/upload_models.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user