updates
Browse files
app.py
CHANGED
@@ -35,6 +35,7 @@ def poem_generate(word):
|
|
35 |
return poem
|
36 |
|
37 |
def poem_to_image(poem):
|
|
|
38 |
poem = " ".join(poem[1:].split('\n'))
|
39 |
poem = poem + " oil on canvas."
|
40 |
steps, width, height, images, diversity = '50','256','256','1',15
|
@@ -46,7 +47,7 @@ demo = gr.Blocks()
|
|
46 |
with demo:
|
47 |
input_word = gr.Textbox(placeholder="Enter a word here to create a Poem on..")
|
48 |
poem_txt = gr.Textbox(lines=7)
|
49 |
-
output_image = gr.Image(type="filepath")
|
50 |
|
51 |
b1 = gr.Button("Generate Poem")
|
52 |
b2 = gr.Button("Generate Image")
|
|
|
35 |
return poem
|
36 |
|
37 |
def poem_to_image(poem):
|
38 |
+
print(poem)
|
39 |
poem = " ".join(poem[1:].split('\n'))
|
40 |
poem = poem + " oil on canvas."
|
41 |
steps, width, height, images, diversity = '50','256','256','1',15
|
|
|
47 |
with demo:
|
48 |
input_word = gr.Textbox(placeholder="Enter a word here to create a Poem on..")
|
49 |
poem_txt = gr.Textbox(lines=7)
|
50 |
+
output_image = gr.Image(type="filepath", shape=(256,256))
|
51 |
|
52 |
b1 = gr.Button("Generate Poem")
|
53 |
b2 = gr.Button("Generate Image")
|