




from datetime import datetime

import requests



def 							_A       (						lowerCAmelCase_					: Dict      ):
     """simple docstring"""

     lowerCAmelCase__          =			"https://downloadgram.net/wp-json/wppress/video-downloader/video?url="
     lowerCAmelCase__          =			requests.get(base_url + url      ).json()[0]["urls"][0]["src"]
     return requests.get(__UpperCAmelCase      ).content


if __name__ == "__main__":
 UpperCamelCase								=					input('Enter Video/IGTV url: ').strip()
 UpperCamelCase								=					F"""{datetime.now():%Y-%m-%d_%H:%M:%S}.mp4"""
 with open(file_name, 'wb') as fp:
  fp.write(download_video(url))
 print(F"""Done. Video saved to disk as {file_name}.""")






import fire

from transformers import AutoConfig, AutoModelForSeqaSeqLM, AutoTokenizer



def 							_A       (						lowerCAmelCase_					: str       ,    lowerCAmelCase_					: str       ,    **lowerCAmelCase_					: str      ):
     """simple docstring"""

     lowerCAmelCase__          =			AutoConfig.from_pretrained(lowerCAmelCase_       ,    **lowerCAmelCase_      )
     lowerCAmelCase__          =			AutoModelForSeqaSeqLM.from_config(lowerCAmelCase_      )
     model.save_pretrained(lowerCAmelCase_      )
     AutoTokenizer.from_pretrained(lowerCAmelCase_      ).save_pretrained(lowerCAmelCase_      )
     return model


if __name__ == "__main__":
     fire.Fire(save_randomly_initialized_version)
