(min_version)
| 162 | |
| 163 | |
| 164 | def check_min_version(min_version): |
| 165 | if version.parse(__version__) < version.parse(min_version): |
| 166 | if "dev" in min_version: |
| 167 | error_message = ( |
| 168 | "This example requires a source install from HuggingFace diffusers (see " |
| 169 | "`https://huggingface.co/docs/diffusers/installation#install-from-source`)," |
| 170 | ) |
| 171 | else: |
| 172 | error_message = f"This example requires a minimum version of {min_version}," |
| 173 | error_message += f" but the version found is {__version__}.\n" |
| 174 | raise ImportError(error_message) |
no outgoing calls
no test coverage detected
searching dependent graphs…