Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|