Socket
Socket
Sign inDemoInstall

gia-ast

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gia-ast - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

17

gia-ast-server.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc