diff --git a/pkg/executor/init.go b/pkg/executor/init.go index 29a9761..d85f623 100644 --- a/pkg/executor/init.go +++ b/pkg/executor/init.go @@ -12,7 +12,7 @@ func (e *Executor) InitCommand() error { cmd.Dir = e.Path err := cmd.Run() if err != nil { - return fmt.Errorf("error installing on initializing venv") + return fmt.Errorf("error installing on initializing venv: %v", err) } return err } diff --git a/pkg/template/api/base.go b/pkg/template/api/base.go deleted file mode 100644 index 071af94..0000000 --- a/pkg/template/api/base.go +++ /dev/null @@ -1,8 +0,0 @@ -package api - -//go:embed api.template -var APICode string - -type APIValues interface { - Render() (string, error) -} diff --git a/pkg/template/code/requirements.txt b/pkg/template/code/requirements.txt deleted file mode 100644 index 6c509b2..0000000 --- a/pkg/template/code/requirements.txt +++ /dev/null @@ -1,39 +0,0 @@ -anyio==3.5.0 -asgiref==3.5.0 -certifi==2021.10.8 -charset-normalizer==2.0.12 -click==8.1.2 -dnspython==2.2.1 -email-validator==1.1.3 -fastapi==0.75.1 -flatbuffers==2.0 -h11==0.13.0 -httptools==0.2.0 -idna==3.3 -itsdangerous==2.1.2 -Jinja2==3.1.1 -joblib==1.1.0 -keras==2.8.0 -MarkupSafe==2.1.1 -numpy==1.22.3 -onnxruntime==1.11.0 -orjson==3.6.7 -protobuf==3.20.0 -pydantic==1.9.0 -python-dotenv==0.20.0 -python-multipart==0.0.5 -PyYAML==5.4.1 -requests==2.27.1 -scikit-learn==1.0.2 -scipy==1.8.0 -six==1.16.0 -sniffio==1.2.0 -starlette==0.17.1 -threadpoolctl==3.1.0 -typing_extensions==4.1.1 -ujson==5.2.0 -urllib3==1.26.9 -uvicorn==0.15.0 -uvloop==0.16.0 -watchgod==0.8.2 -websockets==10.2 diff --git a/pkg/template/model/keras/keras.go b/pkg/template/model/keras/base.go similarity index 100% rename from pkg/template/model/keras/keras.go rename to pkg/template/model/keras/base.go diff --git a/pkg/template/model/onnx/onnx.go b/pkg/template/model/onnx/base.go similarity index 100% rename from pkg/template/model/onnx/onnx.go rename to pkg/template/model/onnx/base.go