This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def show_image(img): | |
| npimg = img.numpy() | |
| plt.imshow(np.transpose(npimg, (1, 2, 0))) | |
| vae.eval() | |
| with torch.no_grad(): | |
| # sample latent vectors from the normal distribution |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| search_tweets_api: | |
| account_type: premium | |
| endpoint: https://api.twitter.com/1.1/tweets/search/fullarchive/env_name.json | |
| bearer_token: <BEARER_TOKEN> | |
| #consumer_key: <CONSUMER_KEY> | |
| #consumer_secret: <CONSUMER_SECRET> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #52 minutes converted in seconds | |
| num_seconds_video= 52*60 | |
| print("The video is {} seconds".format(num_seconds_video)) | |
| l=list(range(0,num_seconds_video+1,60)) | |
| print(l) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pip install SpeechRecognition | |
| pip install moviepy |