Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
Testing distributed network
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrevinnoc committed Feb 13, 2021
1 parent 4f10efc commit 3e162f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions future.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def answer(query: str, page: int) -> jsonify:
}

urls = loadMoreUrls(q_vec, queryLanguage, numberOfURLs, page)
minimumScore = min(urls["scores"])
minimumScore = max(urls["scores"])

listOfDataFromPeers = asyncio.run(
getDataFromPeers(query, q_vec, queryLanguage, numberOfURLs, page, minimumScore))
Expand Down Expand Up @@ -450,7 +450,7 @@ def answerImages(query: str, page: int) -> jsonify:
return {"images": []}

images = loadMoreImages(q_vec, 10, page)
minimumScore = min(images["scores"])
minimumScore = max(images["scores"])

listOfDataFromPeers = asyncio.run(
getImagesFromPeers(query, q_vec, queryLanguage, numberOfURLs, page, minimumScore))
Expand Down

0 comments on commit 3e162f6

Please sign in to comment.