




"""simple docstring"""

import re

from filelock import FileLock


try:
       import nltk

       a         =      True
except (ImportError, ModuleNotFoundError):
       a         =      False

if NLTK_AVAILABLE:
       with FileLock('''.lock''') as lock:
              nltk.download('''punkt''', quiet=True)






def 						_snake_case					( _snake_case							: str							)   -> str:






      '''simple docstring'''


      re.sub('<n>'    ,  ''    ,  _snake_case							)  # remove pegasus newline char
      assert NLTK_AVAILABLE, "nltk must be installed to separate newlines between sentences. (pip install nltk)"
      return "\n".join(nltk.sent_tokenize(_snake_case							)							)







"""simple docstring"""

import os

from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE, hf_cache_home


a         =      HUGGINGFACE_HUB_CACHE


a         =      '''config.json'''
a         =      '''diffusion_pytorch_model.bin'''
a         =      '''diffusion_flax_model.msgpack'''
a         =      '''model.onnx'''
a         =      '''diffusion_pytorch_model.safetensors'''
a         =      '''weights.pb'''
a         =      '''https://huggingface.co'''
a         =      default_cache_path
a         =      '''diffusers_modules'''
a         =      os.getenv('''HF_MODULES_CACHE''', os.path.join(hf_cache_home, '''modules'''))
a         =      ['''fp16''', '''non-ema''']
a         =      '''.self_attn'''

