mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
[Images] Fixed images recognition with google
This commit is contained in:
@@ -10,7 +10,7 @@ from google.cloud import vision
|
||||
try:
|
||||
client = vision.ImageAnnotatorClient()
|
||||
except:
|
||||
debug("Google Vision API is not setup, please run /setup")
|
||||
print("Google Vision API is not setup, please run /setup")
|
||||
|
||||
|
||||
|
||||
@@ -64,4 +64,4 @@ async def process(attachment):
|
||||
return final
|
||||
|
||||
except Exception as e:
|
||||
debug("Error while processing image: " + str(e))
|
||||
print("Error while processing image: " + str(e))
|
||||
|
||||
Reference in New Issue
Block a user