softwareweaver commited on
Commit
f84d1c9
·
verified ·
1 Parent(s): b7848a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -55,7 +55,8 @@ def infer(
55
  if model_name != current_model_id:
56
  pipe = DiffusionPipeline.from_pretrained(
57
  model_name,
58
- torch_dtype=torch_dtype
 
59
  ).to(device)
60
  current_model_id = model_name
61
 
 
55
  if model_name != current_model_id:
56
  pipe = DiffusionPipeline.from_pretrained(
57
  model_name,
58
+ torch_dtype=torch_dtype,
59
+ use_auth_token=hf_token
60
  ).to(device)
61
  current_model_id = model_name
62