Neon-AI commited on
Commit
03e5497
·
verified ·
1 Parent(s): 0b408ac

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +7 -3
index.js CHANGED
@@ -5,9 +5,13 @@ const fs = require("fs");
5
  async function generateImage(text) {
6
 
7
  const browser = await puppeteer.launch({
8
- headless: true,
9
- args: ["--no-sandbox"]
10
- });
 
 
 
 
11
 
12
  const page = await browser.newPage();
13
 
 
5
  async function generateImage(text) {
6
 
7
  const browser = await puppeteer.launch({
8
+ headless: true,
9
+ executablePath: "/usr/bin/google-chrome",
10
+ args: [
11
+ "--no-sandbox",
12
+ "--disable-setuid-sandbox"
13
+ ]
14
+ });
15
 
16
  const page = await browser.newPage();
17