Spaces:
Runtime error
Runtime error
timep12345
commited on
Commit
·
5799184
1
Parent(s):
7b61375
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,7 @@ from trafilatura.settings import use_config
|
|
15 |
|
16 |
|
17 |
|
|
|
18 |
def loading_website():
|
19 |
return "Loading..."
|
20 |
|
@@ -38,7 +39,8 @@ def url_changes(url, pages_to_visit, urls_to_scrape, repo_id):
|
|
38 |
documents = loader.load()
|
39 |
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=200)
|
40 |
texts = text_splitter.split_documents(documents)
|
41 |
-
|
|
|
42 |
embeddings = HuggingFaceEmbeddings(
|
43 |
model_name=emb_model
|
44 |
)
|
|
|
15 |
|
16 |
|
17 |
|
18 |
+
|
19 |
def loading_website():
|
20 |
return "Loading..."
|
21 |
|
|
|
39 |
documents = loader.load()
|
40 |
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=200)
|
41 |
texts = text_splitter.split_documents(documents)
|
42 |
+
#"snunlp/KR-SBERT-V40K-klueNLI-augSTS"
|
43 |
+
emb_model = "all-MiniLM-L6-v2"
|
44 |
embeddings = HuggingFaceEmbeddings(
|
45 |
model_name=emb_model
|
46 |
)
|