Spaces:
Sleeping
Sleeping
DEBUG
Browse files
app.py
CHANGED
|
@@ -386,7 +386,7 @@ async def loadWebURLs(loadWebsite: LoadWebsite):
|
|
| 386 |
text = extractTextFromUrlList(urls=urls)
|
| 387 |
dct = {
|
| 388 |
"output": text,
|
| 389 |
-
"source": source
|
| 390 |
}
|
| 391 |
numTokens = len(" ".join([text[x] for x in text]).translate(str.maketrans('', '', string.punctuation)).split(" "))
|
| 392 |
dct = json.dumps(dct, indent=1).encode("utf-8", errors = "replace")
|
|
|
|
| 386 |
text = extractTextFromUrlList(urls=urls)
|
| 387 |
dct = {
|
| 388 |
"output": text,
|
| 389 |
+
"source": urlparse(source).netloc
|
| 390 |
}
|
| 391 |
numTokens = len(" ".join([text[x] for x in text]).translate(str.maketrans('', '', string.punctuation)).split(" "))
|
| 392 |
dct = json.dumps(dct, indent=1).encode("utf-8", errors = "replace")
|