SeaWolf-AI commited on
Commit
59d32ff
·
verified ·
1 Parent(s): daa968b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -107,7 +107,7 @@ def _load_model(model_name: str):
107
  import gc; gc.collect()
108
  print(f"[MODEL] Unloaded previous model", flush=True)
109
 
110
- _processor = AutoProcessor.from_pretrained(model_id, backend="pil")
111
  _model = AutoModelForMultimodalLM.from_pretrained(
112
  model_id, device_map="auto", dtype=torch.bfloat16,
113
  )
 
107
  import gc; gc.collect()
108
  print(f"[MODEL] Unloaded previous model", flush=True)
109
 
110
+ _processor = AutoProcessor.from_pretrained(model_id)
111
  _model = AutoModelForMultimodalLM.from_pretrained(
112
  model_id, device_map="auto", dtype=torch.bfloat16,
113
  )