Dakerqi commited on
Commit
899b6e3
·
verified ·
1 Parent(s): 8ed7188

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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()