File size: 291 Bytes
ee6e328
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

for FILE in converted/*; do 
  model_name=`basename $FILE`
  huggingface-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