Refactor: Use librosa instead of torchaudio, Add dedicated handlers for all use parameters and fix widget ordering
- Use librosa instead of torchaudio for mediaStorage - Created dedicated toggle handlers for Image Inference, Video Inference, Upscaler, Audio Inference, Accelerator Options, Bytedance Provider Settings, and OpenAI Provider Settings - Fixed Audio Inference widget ordering (use parameters now appear before their corresponding parameters) - All handlers use the same proven pattern from videoInferenceDimensionsHandler - Improved widget disabling/enabling functionality across all nodes
This commit is contained in:
+22
-1
@@ -1,6 +1,9 @@
|
||||
from .utils import runwareUtils as rwUtils
|
||||
|
||||
|
||||
class apiManager:
|
||||
"""API Manager node for configuring Runware API settings"""
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
@@ -60,4 +63,22 @@ class apiManager:
|
||||
|
||||
DESCRIPTION = "API Managers is a Runware Utility That helps you define or change your API Key, Session Timeout, Image Output Format & Quality, and Image Caching settings From The ComfyUI Interface Without having to adjust the env file locally."
|
||||
CATEGORY = "Runware"
|
||||
RETURN_TYPES = ()
|
||||
RETURN_TYPES = ()
|
||||
|
||||
def manageApiSettings(self, **kwargs):
|
||||
"""Manage API settings"""
|
||||
apiKey = kwargs.get("API Key")
|
||||
maxTimeout = kwargs.get("Max Timeout")
|
||||
imageOutputQuality = kwargs.get("Image Output Quality")
|
||||
imageOutputFormat = kwargs.get("Image Output Format")
|
||||
enableImagesCaching = kwargs.get("Enable Images Caching")
|
||||
minImageCacheSize = kwargs.get("Min Image Cache Size")
|
||||
|
||||
rwUtils.setApiKey(apiKey)
|
||||
rwUtils.setTimeout(maxTimeout)
|
||||
rwUtils.setOutputQuality(imageOutputQuality)
|
||||
rwUtils.setOutputFormat(imageOutputFormat)
|
||||
rwUtils.setEnableImagesCaching(enableImagesCaching)
|
||||
rwUtils.setMinImageCacheSize(minImageCacheSize)
|
||||
|
||||
return ()
|
||||
|
||||
Reference in New Issue
Block a user