Update to remove cache

This commit is contained in:
daxcay
2024-06-15 21:54:50 +05:30
parent faf7ed9a07
commit f153b58787
7 changed files with 29 additions and 0 deletions
+4
View File
@@ -200,6 +200,10 @@ class DATASET_CaptionVisualizer:
print(f"Error saving: {e}")
return (["", "", ""],)
@classmethod
def IS_CHANGED(s, Captions, WordCloudTop, NetworkGraphTop, FrequencyGraphTop):
return os.urandom(16).hex()
N_CLASS_MAPPINGS = {
+5
View File
@@ -1,4 +1,5 @@
from openai import OpenAI
import os
class DATASET_OpenAIChat:
@@ -32,6 +33,10 @@ class DATASET_OpenAIChat:
return (answer,)
except Exception as e:
return (f"Error: {str(e)}",)
@classmethod
def IS_CHANGED(s, model, api_url, api_key, prompt, token_length):
return os.urandom(16).hex()
N_CLASS_MAPPINGS = {
"DATASET_OpenAIChat": DATASET_OpenAIChat,
+5
View File
@@ -3,6 +3,7 @@ import io
from PIL import Image
import numpy as np
from openai import OpenAI
import os
class DATASET_OpenAIChatImage:
@@ -52,6 +53,10 @@ class DATASET_OpenAIChatImage:
except Exception as e:
return (f"Error: {str(e)}",)
@classmethod
def IS_CHANGED(s, image, image_detail, model, api_url, api_key, prompt, token_length):
return os.urandom(16).hex()
N_CLASS_MAPPINGS = {
"DATASET_OpenAIChatImage": DATASET_OpenAIChatImage,
+4
View File
@@ -67,6 +67,10 @@ class DATASET_SearchAndReplace:
print(f"Error saving: {e}")
return ()
@classmethod
def IS_CHANGED(s, TextFilePathList, SearchFor, ReplaceWith):
return os.urandom(16).hex()
N_CLASS_MAPPINGS = {
+4
View File
@@ -64,6 +64,10 @@ class DATASET_TXTFileSaver:
print(f"Error saving: {e}")
return ()
@classmethod
def IS_CHANGED(s, content, file_name, directory, mode):
return os.urandom(16).hex()
N_CLASS_MAPPINGS = {
@@ -133,6 +133,10 @@ class DATASET_TagManipulatorByImageNames:
print(f"Error saving: {e}")
return ()
@classmethod
def IS_CHANGED(s, ImageNames, TagsDirectory, Captions, Backup):
return os.urandom(16).hex()
N_CLASS_MAPPINGS = {
+3
View File
@@ -54,6 +54,9 @@ class DATASET_xCopy:
return ()
@classmethod
def IS_CHANGED(s, source_folder, destination_folder, mode):
return os.urandom(16).hex()
N_CLASS_MAPPINGS = {
"DATASET_xCopy": DATASET_xCopy,