




from ..utils import is_flax_available, is_torch_available


if is_torch_available():
   from .autoencoder_kl import AutoencoderKL
   from .controlnet import ControlNetModel
   from .dual_transformer_ad import DualTransformeraDModel
   from .modeling_utils import ModelMixin
   from .prior_transformer import PriorTransformer
   from .ta_film_transformer import TaFilmDecoder
   from .transformer_ad import TransformeraDModel
   from .unet_ad import UNetaDModel
   from .unet_ad import UNetaDModel
   from .unet_ad_condition import UNetaDConditionModel
   from .unet_ad_condition import UNetaDConditionModel
   from .vq_model import VQModel

if is_flax_available():
   from .controlnet_flax import FlaxControlNetModel
   from .unet_ad_condition_flax import FlaxUNetaDConditionModel
   from .vae_flax import FlaxAutoencoderKL





import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
   print('Googling.....')
   lowerCamelCase__ :   List[Any]					=							'https://www.google.com/search?q=' + ' '.join(sys.argv[1:])
   lowerCamelCase__ :   List[Any]					=							requests.get(url, headers={'UserAgent': UserAgent().random})
   # res.raise_for_status()
   with open('project1a.html', 'wb') as out_file:  # only for knowing the class
      for data in res.iter_content(10_000):
         out_file.write(data)
   lowerCamelCase__ :   int					=							BeautifulSoup(res.text, 'html.parser')
   lowerCamelCase__ :   List[str]					=							list(soup.select('.eZt8xd'))[:5]

   print(len(links))
   for link in links:
      if link.text == "Maps":
         webbrowser.open(link.get('href'))
      else:
         webbrowser.open(f'''https://google.com{link.get('href')}''')