Skip to content

Instantly share code, notes, and snippets.

import os
import torch
import shutil
import tempfile
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
from hydra.core.global_hydra import GlobalHydra
from hydra import initialize_config_dir
from sam2.build_sam import build_sam2_video_predictor
@jonnyajex
jonnyajex / quiz_game.py
Created April 20, 2024 08:56
Quiz Game Project
# List containing multiple questions & answers
questions = [{
id: 0,
'question': 'What is 2+2?',
'answer': '4',
'explain': 'Abbe basic maths yaar!'
}, {
id: 1,
'question': 'Is earth flat? Write y/n',
'answer': 'y',
https://mega.nz/folder/Z7QiAQ7R#gcaEF8anUTZDntPSwgVe6Q