VQA / config.py
VigneshVS2005's picture
Add Groq Llama 3.2 Vision implementation with strict formatting constraints
52002cf
Raw
History Blame
456 Bytes
import os
import torch
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
# ===== ADMIN SETTINGS =====
ADMIN_MODE = True
ENABLE_EXTERNAL_AI = True # Toggle Gemini here
# ===== Gemini API Key =====
GEMINI_API_KEY = os.getenv("GEMINI_API_KEY", "AIzaSyB1fMfnnp2etuOVWiLrecdMp3_0GbEWLaU")
# ===== Security Limits =====
MAX_IMAGE_SIZE_MB = 5
RATE_LIMIT_PER_MINUTE = 30
HF_TOKEN = os.getenv("HF_TOKEN", "")
GROQ_API_KEY = os.getenv("GROQ_API_KEY", "")