




"""simple docstring"""







from dataclasses import dataclass
from enum import Enum
from typing import List, Optional, Union

import numpy as np
import PIL
from PIL import Image

from ...utils import BaseOutput, is_torch_available, is_transformers_available

@dataclass
class 				snake_case_			(					lowerCamelCase_			):







   """simple docstring"""




   A_				      =       42
   A_				      =       42


if is_transformers_available() and is_torch_available():
  from .pipeline_semantic_stable_diffusion import SemanticStableDiffusionPipeline
from typing import Optional
from urllib.parse import quote

import huggingface_hub as hfh
from packaging import version


def 				lowerCAmelCase__       (			a__    ,     a__    ,     a__ = None )      ->str:




  '''simple docstring'''

  if version.parse(hfh.__version__ ).release < version.parse("0.11.0" ).release:
    # old versions of hfh don't url-encode the file path
    _UpperCamelCase           =    quote(a__ )
  return hfh.hf_hub_url(a__    ,     a__    ,     repo_type="dataset"    ,     revision=a__ )




