banao-tech commited on
Commit
a5fb61e
·
verified ·
1 Parent(s): c723f2e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -36,7 +36,7 @@ from ultralytics import YOLO
36
  #except:
37
  #yolo_model = YOLO("best.pt")
38
  from transformers import AutoProcessor, AutoModelForCausalLM
39
-
40
  # Correctly load the processor and model for Blip-2
41
  try:
42
  processor = AutoProcessor.from_pretrained("microsoft/Florence-2-base", trust_remote_code=True)
 
36
  #except:
37
  #yolo_model = YOLO("best.pt")
38
  from transformers import AutoProcessor, AutoModelForCausalLM
39
+ from transformers import AutoProcessor, Blip2ForConditionalGeneration
40
  # Correctly load the processor and model for Blip-2
41
  try:
42
  processor = AutoProcessor.from_pretrained("microsoft/Florence-2-base", trust_remote_code=True)