Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -73,7 +73,7 @@ def encode_prompt(prompt_batch, text_encoder, tokenizer, proportion_empty_prompt
|
|
| 73 |
max_length=256,
|
| 74 |
truncation=True,
|
| 75 |
return_tensors="pt",
|
| 76 |
-
)
|
| 77 |
|
| 78 |
print(f"Text Encoder Device: {text_encoder.device}")
|
| 79 |
text_input_ids = text_inputs.input_ids.cuda()
|
|
|
|
| 73 |
max_length=256,
|
| 74 |
truncation=True,
|
| 75 |
return_tensors="pt",
|
| 76 |
+
).cuda()
|
| 77 |
|
| 78 |
print(f"Text Encoder Device: {text_encoder.device}")
|
| 79 |
text_input_ids = text_inputs.input_ids.cuda()
|