🐛 Made search term "all" work

This commit is contained in:
2021-04-06 15:34:23 +03:00
parent 5bf8fd6543
commit 1d88d0e936
2 changed files with 4 additions and 3 deletions

View File

@@ -6,4 +6,4 @@ import requests
def detect(url):
response = requests.get(url)
img = Image.open(io.BytesIO(response.content))
return pytesseract.image_to_string(img).lower()
return pytesseract.image_to_string(img, lang='rus', timeout=30).lower()