Comparing version 0.5.1 to 0.5.2
@@ -5,2 +5,3 @@ | ||
//docker rm astpicasso --force | ||
const valid_choices_are = "picasso,van-gogh,roerich,pollock,peploe,munch,monet,kirchner,gauguin,el-greco,cezanne,morisot" | ||
@@ -11,9 +12,5 @@ const { exec } = require('child_process'); | ||
const valid_choices_are = "picasso,van-gogh,roerich,pollock,peploe,munch,monet,kirchner,gauguin,el-greco,cezanne,morisot" | ||
//if the argument is not in the list of valid choices, exit | ||
if (!valid_choices_are.includes(process.argv[2])) { | ||
console.log("valid choices are :" ); | ||
for (let choice of valid_choices_are.split(",")) { | ||
console.log("gia-ast-server --"+choice); | ||
} | ||
show_valid_choices(); | ||
return; | ||
@@ -62,3 +59,13 @@ } | ||
} | ||
else { | ||
show_valid_choices(); | ||
} | ||
function show_valid_choices() { | ||
console.log("valid choices are :"); | ||
for (let choice of valid_choices_are.split(",")) { | ||
console.log("gia-ast-server --" + choice); | ||
} | ||
} | ||
function create_docker_run(ast_model = "astpicasso", local_port = 7860) { | ||
@@ -65,0 +72,0 @@ result = "docker run -d --name " + ast_model + " -p " + local_port + ":7860 --platform=linux/amd64 registry.hf.space/jgwill-" + ast_model + ":latest "; |
{ | ||
"name": "gia-ast", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "A CLI Wrapping AST Web API calls to servers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1694186
7868