mirror of
https://github.com/wassname/TTS.git
synced 2026-09-10 11:50:20 +08:00
fix: fixing the RenamingUnpickler fix
This commit is contained in:
+1
-3
@@ -6,9 +6,7 @@ import pickle as pickle_tts
|
||||
class RenamingUnpickler(pickle_tts.Unpickler):
|
||||
"""Overload default pickler to solve module renaming problem"""
|
||||
def find_class(self, module, name):
|
||||
if 'TTS' in module:
|
||||
module = module.replace('TTS', 'TTS')
|
||||
return super().find_class(module, name)
|
||||
return super().find_class(module.replace('mozilla_voice_tts', 'TTS'), name)
|
||||
|
||||
|
||||
class AttrDict(dict):
|
||||
|
||||
Reference in New Issue
Block a user