How to Solve NameError: name 'files' is not defined -- google

Solution: Import the 'files' module

To Solve the error, add the following line to the top of your code.

from google.colab import files

 

For more information:
Python google files