rairo commited on
Commit
e5adc42
·
verified ·
1 Parent(s): 1bf588f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -5,9 +5,14 @@ import json
5
  from scrapegraphai.graphs import SmartScraperGraph
6
  import nest_asyncio
7
  import os
 
 
 
 
8
 
9
  nest_asyncio.apply()
10
 
 
11
  GOOGLE_API_KEY = os.environ['GOOGLE_API_KEY']
12
 
13
  graph_config = {
 
5
  from scrapegraphai.graphs import SmartScraperGraph
6
  import nest_asyncio
7
  import os
8
+ import subprocess
9
+
10
+ # Ensure Playwright installs required browsers and dependencies
11
+ subprocess.run(["playwright", "install"])
12
 
13
  nest_asyncio.apply()
14
 
15
+
16
  GOOGLE_API_KEY = os.environ['GOOGLE_API_KEY']
17
 
18
  graph_config = {