Skip to content

Commit 364d59d

Browse files
Fix community pipelines (#3266)
1 parent 2ced899 commit 364d59d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/utils/dynamic_modules_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def get_cached_module_file(
267267

268268
# retrieve github version that matches
269269
if revision is None:
270-
revision = latest_version if latest_version in available_versions else "main"
270+
revision = latest_version if latest_version[1:] in available_versions else "main"
271271
logger.info(f"Defaulting to latest_version: {revision}.")
272272
elif revision in available_versions:
273273
revision = f"v{revision}"

0 commit comments

Comments
 (0)