Modify this code and only modify the path part so I looks for all .hash and dfm files…
- User
Modify this code and only modify the path part so I looks for all .hash and dfm files and not just specifics ones here is code 'hashes': { 'deep_swapper': { 'url': resolve_download_url_by_provider('huggingface', 'deepfacelive-models-' + model_creator, model_name + '.hash'), 'path': resolve_relative_path('../.assets/models/' + model_creator + '/' + model_name + '.hash') } }, 'sources': { 'deep_swapper': { 'url': resolve_download_url_by_provider('huggingface', 'deepfacelive-models-' + model_creator, model_name + '.dfm'), 'path': resolve_relative_path('../.assets/models/' + model_creator + '/' + model_name + '.dfm') } }, 'template': model_template, 'size': model_size }
- Assistant
Sure, to modify the
pathsections so that they reference all.hashand files within the specified directories, you can replace the specific file names with wildcard patterns ( and ). Here's the updated code: