Merge pull request #1 from modelscope/rename

refactor to use proper DashScope name
This commit is contained in:
Yingda Chen
2024-08-13 09:15:19 +08:00
committed by GitHub
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
from .nodes.dashscope_flux_api import DashscopeFLUXAPI
from .nodes.dashscope_flux_api import DashScopeFLUXAPI
NODE_CLASS_MAPPINGS = {
"DashscopeFLUXAPI": DashscopeFLUXAPI,
"DashScopeFLUXAPI": DashScopeFLUXAPI,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"DashscopeFLUXAPI": "FLUX API",
"DashScopeFLUXAPI": "FLUX API",
}
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]
+2 -2
View File
@@ -6,7 +6,7 @@ from io import BytesIO
class DashscopeFLUXAPI:
class DashScopeFLUXAPI:
@classmethod
def INPUT_TYPES(s):
return {
@@ -36,7 +36,7 @@ class DashscopeFLUXAPI:
RETURN_TYPES = ("IMAGE",)
FUNCTION = "call_api"
CATEGORY = "Dashscope"
CATEGORY = "DashScope"
def preprocess_image(self, image):
image = torch.Tensor(np.array(image, dtype=np.float32) * (1 / 255))
+2 -2
View File
@@ -4,7 +4,7 @@
"nodes": [
{
"id": 10,
"type": "DashscopeFLUXAPI",
"type": "DashScopeFLUXAPI",
"pos": [
426,
263
@@ -28,7 +28,7 @@
}
],
"properties": {
"Node name for S&R": "DashscopeFLUXAPI"
"Node name for S&R": "DashScopeFLUXAPI"
},
"widgets_values": [
"flux-schnell",