h-siyuan commited on
Commit
c181606
·
verified ·
1 Parent(s): a9de6c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def get_model_processor():
40
  model = Qwen2VLForConditionalGeneration.from_pretrained(
41
  "./showui-2b",
42
  torch_dtype=torch.bfloat16,
43
- device_map="auto",
44
  )
45
 
46
  # Load the processor
 
40
  model = Qwen2VLForConditionalGeneration.from_pretrained(
41
  "./showui-2b",
42
  torch_dtype=torch.bfloat16,
43
+ device_map="cuda",
44
  )
45
 
46
  # Load the processor