storyboard-bridge 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tryinfer_client.py +6 -2
package/package.json
CHANGED
package/tryinfer_client.py
CHANGED
|
@@ -314,8 +314,11 @@ def main():
|
|
|
314
314
|
# model default is capability-aware: image caps use seedream (seedANCE is the VIDEO model — a common mixup).
|
|
315
315
|
model = args.model or ("seedream-5.0-pro" if args.capability in ("edit", "text-to-image") else "seedance-2.0-pro")
|
|
316
316
|
image_urls = args.image_url or ["https://www.gstatic.com/webp/gallery/1.jpg"] # default = permissive test image
|
|
317
|
-
sess =
|
|
317
|
+
sess = None
|
|
318
318
|
try:
|
|
319
|
+
# inside the try so a connect/tab failure ("No open tab … Open tryinfer.com and log in") surfaces as a
|
|
320
|
+
# clean error EVENT the node can show — not a raw Python traceback dumped to the UI.
|
|
321
|
+
sess = BrowserSession(f"http://{args.host}:{args.port}", args.match)
|
|
319
322
|
if args.resume_task:
|
|
320
323
|
task_id = args.resume_task
|
|
321
324
|
log(f"resuming task {task_id}")
|
|
@@ -333,7 +336,8 @@ def main():
|
|
|
333
336
|
log(f"\n❌ {e}")
|
|
334
337
|
sys.exit(1)
|
|
335
338
|
finally:
|
|
336
|
-
sess
|
|
339
|
+
if sess:
|
|
340
|
+
sess.close()
|
|
337
341
|
|
|
338
342
|
if res.get("images"):
|
|
339
343
|
event(event="done", taskId=task_id, images=res["images"])
|