In the load.sh script, the ${NAME} variable will not be expanded because it is within single quotes.
tghfly opened this issue · comments
itcooking commented
#!/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}\"
}"