Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -60,6 +60,10 @@ output = pipe(
|
|
60 |
jit=True,
|
61 |
).images
|
62 |
|
|
|
|
|
|
|
|
|
63 |
#gr.Interface.load("models/tsungtao/controlnet-mlsd-202305011046").launch()
|
64 |
def infer(prompt, negative_prompt, image):
|
65 |
# implement your inference function here
|
|
|
60 |
jit=True,
|
61 |
).images
|
62 |
|
63 |
+
output_images = pipe.numpy_to_pil(np.asarray(output.reshape((num_samples,) + output.shape[-3:])))
|
64 |
+
output_images = image_grid(output_images, num_samples // 4, 4)
|
65 |
+
output_images.save("tao/image.png")
|
66 |
+
|
67 |
#gr.Interface.load("models/tsungtao/controlnet-mlsd-202305011046").launch()
|
68 |
def infer(prompt, negative_prompt, image):
|
69 |
# implement your inference function here
|