fixed transcription caching

This commit is contained in:
SayanoAI
2024-07-21 23:18:44 -04:00
parent 12deab1b0f
commit f0077536e0
+1 -1
View File
@@ -104,7 +104,7 @@ class AudioTranscriptionNode:
@staticmethod
def load_cache(*args,save_filename=""):
results = None
if save_filename: save_filename=get_hash(*args)
if not save_filename: save_filename=get_hash(*args)
cache_name = os.path.join(BASE_CACHE_DIR,"stt",f"{save_filename}.json")
if os.path.isfile(cache_name):