How do you upload a photo to work with it?
raul2297 opened this issue · 4 comments
raul2297 commented
NameError Traceback (most recent call last)
in ()
12 text = translator.translate(text, dest='en').text
13 if upload_image:
---> 14 uploaded = files.upload()
NameError: name 'files' is not defined
eps696 commented
- please mention the notebook or script, which gave the error - it's not always obvious, there are few of them in the repo.
- it seems you didn't run "General setup" cell. It must precede any other command, and should be run again after every runtime restart.
raul2297 commented
*I am using it from colab Aphantasia.ipynb*
MessageError Traceback (most recent call last)
<ipython-input-2-c2e4ffc97399> <https://localhost:8080/#> in
<module>() 12 text = translator.translate(text, dest='en').text
13 if upload_image:
---> 14 uploaded = files.upload()
…------------------------------
2 frames
------------------------------
/usr/local/lib/python3.7/dist-packages/google/colab/_message.py
<https://localhost:8080/#> in read_reply_from_input(message_id,
timeout_sec) 104 reply.get('colab_msg_id') == message_id):
105 if 'error' in reply:
--> 106 raise MessageError(reply['error']) 107 return
reply.get('data', None) 108
MessageError: TypeError: Cannot read property '_uploadFiles' of undefined
On Tue, May 4, 2021 at 6:49 PM vadim epstein ***@***.***> wrote:
Closed #20 <#20>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#20 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AT5E7UE4MIIUZF2OFA45QK3TMB2ZNANCNFSM436R74ZA>
.
eps696 commented
please describe exact steps which have led to this (pressed buttons, typed entries, loaded files, selected options, etc.).
i cannot reproduce it on my side.
eps696 commented
i presume you solved this (most probably just missed loading image with temporary button - that's a drawback of colab pipeline), so closing the issue. feel free to reopen it (with supplying more details), if the problem persists.