Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -77,7 +77,7 @@ def poem_generate(word):
|
|
77 |
return poem
|
78 |
|
79 |
def poem_to_image(poem):
|
80 |
-
|
81 |
poem = " ".join(poem.split('\n'))
|
82 |
poem = poem + " oil on canvas."
|
83 |
steps, width, height, images, diversity = '50','256','256','1',15
|
@@ -98,9 +98,9 @@ with demo:
|
|
98 |
with gr.Row():
|
99 |
input_word = gr.Textbox(lines=7, value=prompt)
|
100 |
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
|
105 |
poem_txt = gr.Textbox(lines=7)
|
106 |
output_image = gr.Image(type="filepath", shape=(256,256))
|
|
|
77 |
return poem
|
78 |
|
79 |
def poem_to_image(poem):
|
80 |
+
gr.Markdown("*****Inside Poem_to_image")
|
81 |
poem = " ".join(poem.split('\n'))
|
82 |
poem = poem + " oil on canvas."
|
83 |
steps, width, height, images, diversity = '50','256','256','1',15
|
|
|
98 |
with gr.Row():
|
99 |
input_word = gr.Textbox(lines=7, value=prompt)
|
100 |
|
101 |
+
examples=[["living, loving, feeling good"], ["I want to live. I want to give."],["Ive been to Hollywood. Ive been to Redwood"]]
|
102 |
+
example_text = gr.Dataset(components=[input_word], samples=examples)
|
103 |
+
example_text.click(fn=set_example,inputs = example_text,outputs= example_text.components)
|
104 |
|
105 |
poem_txt = gr.Textbox(lines=7)
|
106 |
output_image = gr.Image(type="filepath", shape=(256,256))
|