Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,11 @@ from sentence_transformers import SentenceTransformer
|
|
| 6 |
from scrapegraphai.graphs import SmartScraperMultiGraph
|
| 7 |
from langchain_groq import ChatGroq
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
# Apply nest_asyncio to allow nested event loops
|
| 10 |
nest_asyncio.apply()
|
| 11 |
|
|
|
|
| 6 |
from scrapegraphai.graphs import SmartScraperMultiGraph
|
| 7 |
from langchain_groq import ChatGroq
|
| 8 |
|
| 9 |
+
import os
|
| 10 |
+
|
| 11 |
+
# Ensure that Playwright is installed and browsers are set up
|
| 12 |
+
os.system("playwright install")
|
| 13 |
+
|
| 14 |
# Apply nest_asyncio to allow nested event loops
|
| 15 |
nest_asyncio.apply()
|
| 16 |
|