pinokiod 1.3.53 → 1.3.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -88,20 +88,58 @@ const ENV = (homedir) => {
88
88
  }
89
89
  const APP_ENV = () => {
90
90
  const items = [
91
- "####################################################################",
91
+ "##########################################################################",
92
+ "#",
93
+ "# HF_HOME",
94
+ "#",
95
+ "# Huggingface cache",
96
+ "# All the model files automatically downloaded through libraries like",
97
+ "# diffusers, transformers, etc. will be stored under this path",
98
+ "#",
99
+ "# You can save disk space by deleting this line, which will store all",
100
+ "# huggingface files under PINOKIO_HOME/cache/HF_HOME without redundancy.",
101
+ "#",
102
+ "##########################################################################",
103
+ "HF_HOME=cache/HF_HOME",
104
+ "",
105
+ "##########################################################################",
106
+ "#",
107
+ "# TORCH_HOME",
108
+ "#",
109
+ "# Torch hub cache",
110
+ "# All the files automatically downloaded by pytorch will be stored here",
111
+ "#",
112
+ "# You can save disk space by deleting this line, which will store all",
113
+ "# torch hub files under PINOKIO_HOME/cache/TORCH_HOME without redundancy.",
114
+ "#",
115
+ "##########################################################################",
116
+ "TORCH_HOME=cache/TORCH_HOME",
117
+ "",
118
+ "##########################################################################",
119
+ "#",
92
120
  "# GRADIO_TEMP_DIR",
93
- "# All files uploaded through gradio goes here.",
94
- "# Delete or comment this line",
121
+ "# All the files uploaded through gradio goes here.",
122
+ "#",
123
+ "# Delete this line to store the files under PINOKIO_HOME/cache/GRADIO_TEMPDIR",
124
+ "# or change the path if you want to use a different path",
125
+ "#",
126
+ "##########################################################################",
95
127
  "GRADIO_TEMP_DIR=cache/GRADIO_TEMP_DIR",
96
128
  "",
97
- "####################################################################",
129
+ "##########################################################################",
130
+ "#",
98
131
  "# PINOKIO_SHARE_LOCAL",
99
132
  "# Set this variable to true to share the app on the local network.",
133
+ "#",
134
+ "##########################################################################",
100
135
  "PINOKIO_SHARE_LOCAL=true",
101
136
  "",
102
- "####################################################################",
137
+ "##########################################################################",
138
+ "#",
103
139
  "# PINOKIO_SHARE_CLOUDFLARE",
104
140
  "# Set this variable to share the app publicly via cloudflare tunnel.",
141
+ "#",
142
+ "##########################################################################",
105
143
  "PINOKIO_SHARE_CLOUDFLARE=false",
106
144
  ]
107
145
  return items.join("\n")
package/kernel/shell.js CHANGED
@@ -112,13 +112,19 @@ class Shell {
112
112
 
113
113
  this.env.CMAKE_OBJECT_PATH_MAX = 1024
114
114
 
115
+ console.log("THIS.env before", this.env)
115
116
  let home_env = await Environment.get(this.kernel.homedir)
117
+ console.log("home_env before", home_env)
116
118
  this.env = Object.assign(this.env, home_env)
119
+ console.log("home_env after", this.env)
117
120
  if (params.$parent) {
118
121
  let api_path = await Util.api_path(params.$parent.path, this.kernel)
122
+ await Environment.init_folders(api_path)
119
123
  let current_env = await Environment.get(api_path)
124
+ console.log({ current_env, api_path })
120
125
  this.env = Object.assign(this.env, current_env)
121
126
  }
127
+ console.log("THIS.env after", this.env)
122
128
  let PATH_KEY;
123
129
  if (this.env.Path) {
124
130
  PATH_KEY = "Path"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.3.53",
3
+ "version": "1.3.55",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {