Rauhan commited on
Commit
9165cec
1 Parent(s): f0248f7
Files changed (1) hide show
  1. app.py +1 -1
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")