fix: silence false-positive ruff lint warnings in Python scripts

This commit is contained in:
Warren
2026-03-25 14:55:30 +08:00
parent 383201cacd
commit 845704724f
2 changed files with 4 additions and 4 deletions

View File

@@ -82,9 +82,9 @@ def generate_caption_with_llava(
"""Generate caption using LLaVA model"""
try:
# Try to use transformers with LLaVA
from transformers import AutoProcessor, AutoModelForVision2Seq
import torch
from PIL import Image
from transformers import AutoProcessor, AutoModelForVision2Seq # noqa: F401
import torch # noqa: F401
from PIL import Image # noqa: F401
# Note: This requires llava-hf/llava-1.5-7b-hf or similar
# For now, return a placeholder