Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -56,4 +56,8 @@ def infer(prompts, negative_prompts, image):
|
|
56 |
output_images = pipe.numpy_to_pil(np.asarray(output.reshape((num_samples,) + output.shape[-3:])))
|
57 |
return output_images
|
58 |
|
59 |
-
|
|
|
|
|
|
|
|
|
|
56 |
output_images = pipe.numpy_to_pil(np.asarray(output.reshape((num_samples,) + output.shape[-3:])))
|
57 |
return output_images
|
58 |
|
59 |
+
title = "ControlNet MLSD"
|
60 |
+
description = "This is a demo on ControlNet MLSD."
|
61 |
+
examples = [["living room with TV", "fan", "https://datasets-server.huggingface.co/assets/tsungtao/diffusers-testing/--/tsungtao--diffusers-testing/train/0/images/image.jpg"]]
|
62 |
+
|
63 |
+
gr.Interface(infer, inputs=["text", "text", "image"], outputs="gallery", title = title, description = description, examples = examples theme='gradio/soft').launch()
|