Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def generate_image(prompt):
|
|
| 12 |
with torch.no_grad():
|
| 13 |
image = model(prompt).images[0]
|
| 14 |
# Convert to PIL Image to display in Gradio
|
| 15 |
-
image = Image.fromarray(image.numpy())
|
| 16 |
return image
|
| 17 |
|
| 18 |
# Create a Gradio interface
|
|
|
|
| 12 |
with torch.no_grad():
|
| 13 |
image = model(prompt).images[0]
|
| 14 |
# Convert to PIL Image to display in Gradio
|
| 15 |
+
#image = Image.fromarray(image.numpy())
|
| 16 |
return image
|
| 17 |
|
| 18 |
# Create a Gradio interface
|