release v2.0.2
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "ComfyUI-Runware"
|
||||
version = "2.0.1"
|
||||
version = "2.0.2"
|
||||
description = "Every Runware model as a ComfyUI node: image, video, audio, 3D, and text generation in the cloud."
|
||||
license = "MIT"
|
||||
requires-python = ">=3.11"
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
runware-sdk>=1.5.0
|
||||
runware-sdk>=1.6.5
|
||||
pillow
|
||||
soundfile
|
||||
|
||||
+3
-3
@@ -598,9 +598,9 @@ async def run_upload(image_uri: str) -> str:
|
||||
if not api_key:
|
||||
raise RuntimeError("No Runware API key. Set RUNWARE_API_KEY or run `runware auth login`.")
|
||||
async with Runware(api_key=api_key, transport="rest", user_agent_prefix=USER_AGENT_PREFIX) as client:
|
||||
for r in await client.image_upload({"image": image_uri}):
|
||||
if isinstance(r, dict) and r.get("imageUUID"):
|
||||
return str(r["imageUUID"])
|
||||
for r in await client.media_storage({"operation": "upload", "media": image_uri}):
|
||||
if isinstance(r, dict) and r.get("mediaUUID"):
|
||||
return str(r["mediaUUID"])
|
||||
return ""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user