go-skynet / model-gallery

:card_file_box: a curated collection of models ready-to-use with LocalAI

Home Page:https://localai.io/models/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In the load.sh script, the ${NAME} variable will not be expanded because it is within single quotes.

tghfly opened this issue · comments

#!/bin/bash 
NAME=$1
curl "http://12.102.210.202:80/models/apply" -H "Content-Type: application/json" -d "
{
     \"url\": \"http://192.168.5.242:16000/model-gallery/${NAME}.yaml\",
     \"name\": \"${NAME}\"
}"