PartheshSoni / emotion-based-music-player

This is a project using machine learning for detecting emotions based on the expression of the users. The interface is made up of HTML, CSS and JS, and the main code is of Python.
55 stars 48 forks source link

Am getting this error. Could you please solve it ASAP? #2

Open vismaypatel21 opened 4 years ago

vismaypatel21 commented 4 years ago

Capture

ishika1801 commented 2 years ago

The Python "ValueError: max() arg is an empty sequence" occurs when we pass an empty sequence to the max() function. To solve the error, provide the default keyword argument in the call to the max() function, e.g. result = max(my_list, default=0).