pinokiod 1.3.54 → 1.3.60

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/index.js CHANGED
@@ -175,7 +175,6 @@ class Kernel {
175
175
  }
176
176
 
177
177
  async init(options) {
178
- this.port = options.port
179
178
  let home = this.store.get("home")
180
179
 
181
180
  // reset shells if they exist
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.3.54",
3
+ "version": "1.3.60",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {