diff --git a/artifact_comfyui_download.sh b/artifact_comfyui_download.sh index bc8cc9b..bf22e4b 100755 --- a/artifact_comfyui_download.sh +++ b/artifact_comfyui_download.sh @@ -204,8 +204,8 @@ try: if category == 'settings': settings = config.get('settings', {}) - print(f"CACHE_DIR={settings.get('cache_dir', '/workspace/huggingface_cache')}") - print(f"PARALLEL_DOWNLOADS={settings.get('parallel_downloads', 1)}") + print("CACHE_DIR={0}".format(settings.get('cache_dir', '/workspace/huggingface_cache'))) + print("PARALLEL_DOWNLOADS={0}".format(settings.get('parallel_downloads', 1))) elif category == 'categories': for cat_name in config.get('model_categories', {}).keys(): print(cat_name) @@ -218,11 +218,11 @@ try: essential = model.get('essential', False) model_type = model.get('type', 'checkpoints') filename = model.get('filename', '') - print(f"{repo_id}|{description}|{size_gb}|{essential}|{model_type}|{filename}") + print('{0}|{1}|{2}|{3}|{4}|{5}'.format(repo_id, description, size_gb, essential, model_type, filename)) else: sys.exit(1) except Exception as e: - print(f"ERROR: {e}", file=sys.stderr) + print("ERROR: {0}".format(e), file=sys.stderr) sys.exit(1) EOPYAML } @@ -388,7 +388,7 @@ try: ) print("SUCCESS") except Exception as e: - print(f"ERROR: {e}", file=sys.stderr) + print("ERROR: {0}".format(e), file=sys.stderr) sys.exit(1) EOPYDOWNLOAD