Skip to content

Instantly share code, notes, and snippets.

View eugeniaring's full-sized avatar

Eugenia Anello eugeniaring

View GitHub Profile
@eugeniaring
eugeniaring / .py
Last active December 20, 2021 09:28
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
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>
@eugeniaring
eugeniaring / .py
Created December 9, 2020 10:16
conversion
#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)
@eugeniaring
eugeniaring / .py
Created December 9, 2020 10:11
extract
pip install SpeechRecognition
pip install moviepy