Removes invalid trailing comma from config.json Name array

#10

I'm currently unable to run the latest version of the model through Diffusers as I encounter the following error:

OSError: It looks like the config file at './FastHunyuan/config.json' is not a valid JSON file.

This is thrown by Diffusers as a result of json.JSONDecodeError being raised. After looking at the root config.json file, the Name property appears to have a trailing comma; I have reproduced through a small example to ensure that json.loads() and the like do raise this exception for the current version of config.json, and upon removing said comma the error no longer occurs.

jamesseanwright changed pull request title from Removes invalid trailing comma from config.json name property to Removes invalid trailing comma from config.json Name array

Just spotted that the issue is also in tencent/HunyuanVideo, so this might need fixing upstream instead.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment