Spaces:
Build error
Build error
Commit
·
13356ed
1
Parent(s):
95d9e5c
switch to a very generous timeout
Browse files- src/upscaleVideo.mts +2 -1
src/upscaleVideo.mts
CHANGED
@@ -10,6 +10,7 @@ export async function upscaleVideo(fileName: string, prompt: string) {
|
|
10 |
|
11 |
const browser = await puppeteer.launch({
|
12 |
// headless: true,
|
|
|
13 |
})
|
14 |
|
15 |
const spaceUrl = `https://jbilcke-hf-zeroscope-xl.hf.space`
|
@@ -49,7 +50,7 @@ export async function upscaleVideo(fileName: string, prompt: string) {
|
|
49 |
*/
|
50 |
|
51 |
await page.waitForSelector('a[download="xl_result.mp4"]', {
|
52 |
-
timeout: 800000, // need to be
|
53 |
})
|
54 |
|
55 |
const upscaledFileUrl = await page.$$eval('a[download="xl_result.mp4"]', el => el.map(x => x.getAttribute("href"))[0])
|
|
|
10 |
|
11 |
const browser = await puppeteer.launch({
|
12 |
// headless: true,
|
13 |
+
protocolTimeout: 800000,
|
14 |
})
|
15 |
|
16 |
const spaceUrl = `https://jbilcke-hf-zeroscope-xl.hf.space`
|
|
|
50 |
*/
|
51 |
|
52 |
await page.waitForSelector('a[download="xl_result.mp4"]', {
|
53 |
+
timeout: 800000, // need to be large enough in case someone else attemps to use our space
|
54 |
})
|
55 |
|
56 |
const upscaledFileUrl = await page.$$eval('a[download="xl_result.mp4"]', el => el.map(x => x.getAttribute("href"))[0])
|