Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
|