Update to remove cache
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user