Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import streamlit as st
|
2 |
import asyncio
|
3 |
import numpy as np
|
@@ -19,6 +20,8 @@ from sentence_transformers import SentenceTransformer
|
|
19 |
from langchain_community.vectorstores import FAISS
|
20 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
21 |
|
|
|
|
|
22 |
# Scraping and Embedding Function
|
23 |
async def process_urls(urls):
|
24 |
# Load multiple URLs asynchronously
|
|
|
1 |
+
import subprocess
|
2 |
import streamlit as st
|
3 |
import asyncio
|
4 |
import numpy as np
|
|
|
20 |
from langchain_community.vectorstores import FAISS
|
21 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
22 |
|
23 |
+
subprocess.run(["playwright", "install"], check=True)
|
24 |
+
|
25 |
# Scraping and Embedding Function
|
26 |
async def process_urls(urls):
|
27 |
# Load multiple URLs asynchronously
|