Skip to content

Instantly share code, notes, and snippets.

View aijadugar's full-sized avatar
🇮🇳
Researching... Building...

Ankit Bari aijadugar

🇮🇳
Researching... Building...
View GitHub Profile
sudo apt update
sudo apt install -y libgl1
from nanoimports import smart_import
cv2 = smart_import("cv2")
print("Let's see if my webcam works...")
camera = cv2.VideoCapture(0)
=======================================================Upload script
pip install huggingface_hub
from huggingface_hub import HfApi, login
login(token="YOUR_HF_TOKEN")
HF_REPO = "aijadugar/tb-risk-model"
api = HfApi()