Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -81,7 +81,7 @@ def poem_to_image(poem):
|
|
| 81 |
poem = " ".join(poem.split('\n'))
|
| 82 |
poem = poem + " oil on canvas."
|
| 83 |
steps, width, height, images, diversity = '50','256','256','1',15
|
| 84 |
-
img = gr.Interface.load("spaces/multimodalart/latentdiffusion")(poem, steps, width, height, images, diversity)[0]
|
| 85 |
return img
|
| 86 |
|
| 87 |
demo = gr.Blocks()
|
|
@@ -101,6 +101,6 @@ with demo:
|
|
| 101 |
|
| 102 |
b1.click(poem2_generate, input_word, poem_txt)
|
| 103 |
b2.click(poem_to_image, poem_txt, output_image)
|
| 104 |
-
|
| 105 |
|
| 106 |
demo.launch(enable_queue=True, debug=True)
|
|
|
|
| 81 |
poem = " ".join(poem.split('\n'))
|
| 82 |
poem = poem + " oil on canvas."
|
| 83 |
steps, width, height, images, diversity = '50','256','256','1',15
|
| 84 |
+
img = gr.Interface.load("spaces/multimodalart/latentdiffusion", examples=[["living, loving, feeling good"], ["I want to live. I want to give."],["Ive been to Hollywood. Ive been to Redwood"]])(poem, steps, width, height, images, diversity)[0]
|
| 85 |
return img
|
| 86 |
|
| 87 |
demo = gr.Blocks()
|
|
|
|
| 101 |
|
| 102 |
b1.click(poem2_generate, input_word, poem_txt)
|
| 103 |
b2.click(poem_to_image, poem_txt, output_image)
|
| 104 |
+
|
| 105 |
|
| 106 |
demo.launch(enable_queue=True, debug=True)
|