1 Answer
- Newest
- Most votes
- Most comments
1
I think the problem is that you're rewriting the filename (object name) to have _s in place of spaces. When you do this, the name you're passing to detect_document_text() is no longer the name of the object in the bucket, which is why it can't find it.
If you remove this line, it should work:
filename = '_'.join(file.split(' '))
Relevant content
- asked 3 years ago
