Commit
·
6b01a9a
1
Parent(s):
7442c38
fix for pnpm and the errors in the console
Browse files- Dockerfile +1 -1
- public/index.html +2 -2
Dockerfile
CHANGED
@@ -19,7 +19,7 @@ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
|
19 |
RUN apt --yes install nodejs
|
20 |
|
21 |
RUN corepack enable
|
22 |
-
RUN corepack prepare pnpm --activate
|
23 |
|
24 |
RUN apt --yes install git git-lfs libsndfile1-dev tesseract-ocr espeak-ng python3 python3-pip ffmpeg
|
25 |
|
|
|
19 |
RUN apt --yes install nodejs
|
20 |
|
21 |
RUN corepack enable
|
22 |
+
RUN corepack prepare pnpm@6.0.0 --activate
|
23 |
|
24 |
RUN apt --yes install git git-lfs libsndfile1-dev tesseract-ocr espeak-ng python3 python3-pip ffmpeg
|
25 |
|
public/index.html
CHANGED
@@ -116,12 +116,12 @@ function app() {
|
|
116 |
const elapsed = (lastTokenAt - this.lastTokenAt) / 1000
|
117 |
this.lastTokenAt = lastTokenAt
|
118 |
if (elapsed > this.timeoutInSec) {
|
119 |
-
console.log(`Something went wrong, it too more than ${timeoutInSec} seconds to generate a token.`)
|
120 |
this.state = 'stopped'
|
121 |
return
|
122 |
}
|
123 |
if (html.endsWith('</html>')) {
|
124 |
-
console.log('We reached the natural end of the stream, it seems.')
|
125 |
// this.state === 'stopped'
|
126 |
return
|
127 |
}
|
|
|
116 |
const elapsed = (lastTokenAt - this.lastTokenAt) / 1000
|
117 |
this.lastTokenAt = lastTokenAt
|
118 |
if (elapsed > this.timeoutInSec) {
|
119 |
+
console.log(`Something went wrong, it too more than ${this.timeoutInSec} seconds to generate a token.`)
|
120 |
this.state = 'stopped'
|
121 |
return
|
122 |
}
|
123 |
if (html.endsWith('</html>')) {
|
124 |
+
// console.log('We reached the natural end of the stream, it seems.')
|
125 |
// this.state === 'stopped'
|
126 |
return
|
127 |
}
|