Spaces:
Runtime error
Runtime error
app.py
CHANGED
@@ -91,14 +91,14 @@ with demo:
|
|
91 |
"""Testing Bloom """
|
92 |
)
|
93 |
with gr.Row():
|
94 |
-
|
95 |
generated_txt = gr.Textbox(lines=7)
|
96 |
#output_image = gr.Image(type="filepath", shape=(256,256))
|
97 |
|
98 |
b1 = gr.Button("Generate Text")
|
99 |
#b2 = gr.Button("Generate Image")
|
100 |
|
101 |
-
b1.click(text_generate, outputs=generated_txt) #input_word
|
102 |
#b2.click(poem_to_image, poem_txt, output_image)
|
103 |
#examples=examples
|
104 |
|
|
|
91 |
"""Testing Bloom """
|
92 |
)
|
93 |
with gr.Row():
|
94 |
+
input_word = gr.Textbox(placeholder="Enter a word here to generate text ...")
|
95 |
generated_txt = gr.Textbox(lines=7)
|
96 |
#output_image = gr.Image(type="filepath", shape=(256,256))
|
97 |
|
98 |
b1 = gr.Button("Generate Text")
|
99 |
#b2 = gr.Button("Generate Image")
|
100 |
|
101 |
+
b1.click(text_generate,inputs=input_word, outputs=generated_txt) #input_word
|
102 |
#b2.click(poem_to_image, poem_txt, output_image)
|
103 |
#examples=examples
|
104 |
|