Workpam commited on
Commit
8850257
·
verified ·
1 Parent(s): b56f01e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ from transformers import AutoProcessor, Qwen2_5_VLForConditionalGeneration
7
  # Instruction-tuned vision-language model
8
  MODEL_NAME = "Qwen/Qwen2.5-VL-7B-Instruct"
9
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
10
- \# Load processor and model with remote code trust
11
  processor = AutoProcessor.from_pretrained(MODEL_NAME, trust_remote_code=True)
12
  model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
13
  MODEL_NAME,
 
7
  # Instruction-tuned vision-language model
8
  MODEL_NAME = "Qwen/Qwen2.5-VL-7B-Instruct"
9
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
10
+ # Load processor and model with remote code trust
11
  processor = AutoProcessor.from_pretrained(MODEL_NAME, trust_remote_code=True)
12
  model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
13
  MODEL_NAME,