Getting OS Error

TOPIC: AI Caption Image

While creating a web app through flask for the project I am facing an issue:
When I am trying to locate the path of image entered/selected by user, I am getting an Os error when I use the backward slashes and an attribute error while using the forward slashes. There is something fishy with the slashes.

My code:
if request.method == ‘POST’ :
f = request.files[‘userfile’]
path = “./static/”+ f.filename
f.save(path)

caption = CaptionIt.caption_this_image(path)
print(caption)

Note: I am using windows 10

Error: AttributeError: ‘_thread._local’ object has no attribute ‘value’

hey @settingsingh ,
Can you let me know some details about your system ,

  1. Windows or MacOS.
  2. tensorflow version
  3. keras version
  4. Python version you are working on.

Thank You :slightly_smiling_face:.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.