Image not defined error

using the app on google colab. error: NameError: name ‘Image’ is not defined

Traceback:

File "/usr/local/lib/python3.10/dist-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
    result = func()File "/usr/local/lib/python3.10/dist-packages/streamlit/runtime/scriptrunner/script_runner.py", line 590, in code_to_exec
    exec(code, module.__dict__)File "/content/vision.py", line 11, in <module>
    image = Image.open(uploaded_file)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.