Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
@@ -252,9 +252,9 @@ async function enhanceImage(url) {
|
|
252 |
})
|
253 |
|
254 |
await page.getByRole('button', { name: 'Unggah gambar', exact: true }).click()
|
255 |
-
const response = await page.waitForResponse(res =>
|
256 |
console.log(res)
|
257 |
-
return res.url().includes('api/enhance/v1')
|
258 |
}, { timeout: 0 })
|
259 |
const json = await response.json()
|
260 |
|
|
|
252 |
})
|
253 |
|
254 |
await page.getByRole('button', { name: 'Unggah gambar', exact: true }).click()
|
255 |
+
const response = await page.waitForResponse(res => {
|
256 |
console.log(res)
|
257 |
+
return res.url().includes('api/enhance/v1')
|
258 |
}, { timeout: 0 })
|
259 |
const json = await response.json()
|
260 |
|