harmionestark commited on
Commit
bb0fa9b
Β·
verified Β·
1 Parent(s): cfb0720

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -56,9 +56,9 @@ def infer(
56
 
57
  # Ensure text input IDs are of type LongTensor
58
  if isinstance(prompt, torch.Tensor):
59
- prompt = prompt.to(torch.long)
60
  if isinstance(negative_prompt, torch.Tensor):
61
- negative_prompt = negative_prompt.to(torch.long)
62
 
63
  image = pipe(
64
  prompt=prompt,
 
56
 
57
  # Ensure text input IDs are of type LongTensor
58
  if isinstance(prompt, torch.Tensor):
59
+ prompt = prompt.to(torch.long).tolist()
60
  if isinstance(negative_prompt, torch.Tensor):
61
+ negative_prompt = negative_prompt.to(torch.long).tolist()
62
 
63
  image = pipe(
64
  prompt=prompt,