Merge pull request #1 from modelscope/rename
refactor to use proper DashScope name
This commit is contained in:
+3
-3
@@ -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"]
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user