From 2203eecb6d120dd1802ad5afc80dc3bcfb8cd194 Mon Sep 17 00:00:00 2001 From: ZHO-ZHO-ZHO <140084057+ZHO-ZHO-ZHO@users.noreply.github.com> Date: Tue, 30 Jan 2024 17:04:16 +0800 Subject: [PATCH] V1.0 --- __init__.py | 28 ++++++++++++++++++++++++++++ requirements.txt | 1 + 2 files changed, 29 insertions(+) create mode 100644 __init__.py create mode 100644 requirements.txt diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..95e207b --- /dev/null +++ b/__init__.py @@ -0,0 +1,28 @@ +import os +import sys +import filecmp +import shutil +import __main__ +import json + +python = sys.executable + +# create config +if not os.path.isfile(os.path.join(os.path.dirname(os.path.realpath(__file__)),"config.json")): + config = { + "QWENVL_API_KEY": "your key" + } + with open(os.path.join(os.path.dirname(os.path.realpath(__file__)),"config.json"), "w") as f: + json.dump(config, f, indent=4) + +#load config +with open(os.path.join(os.path.dirname(os.path.realpath(__file__)),"config.json"), "r") as f: + config = json.load(f) + + +from .QwenVL_API_Node import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS + +# Combine the dictionaries +#NODE_CLASS_MAPPINGS = {**NODE_CLASS_MAPPINGS_G} + +__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS'] diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5899464 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +dashscope \ No newline at end of file