app.py
CHANGED
@@ -51,10 +51,11 @@ with demo:
|
|
51 |
"<div>Enter a single word you would want GPTJ-6B to write poetry on.</div>"
|
52 |
"<div>Generate an illustration provided by Latent Diffusion model.</div><div>GPJ-6B is a 6 Billion parameter autoregressive language model. It generates the Poem based on how it has been 'prompt-engineered' 🤗 The complete text of generated poem then goes in as a prompt to the amazing Latent Diffusion Art space by <a href='https://huggingface.co/spaces/multimodalart/latentdiffusion' target='_blank'>Multimodalart</a>.</div>"
|
53 |
)
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
|
|
58 |
b1 = gr.Button("Generate Poem")
|
59 |
b2 = gr.Button("Generate Image")
|
60 |
|
|
|
51 |
"<div>Enter a single word you would want GPTJ-6B to write poetry on.</div>"
|
52 |
"<div>Generate an illustration provided by Latent Diffusion model.</div><div>GPJ-6B is a 6 Billion parameter autoregressive language model. It generates the Poem based on how it has been 'prompt-engineered' 🤗 The complete text of generated poem then goes in as a prompt to the amazing Latent Diffusion Art space by <a href='https://huggingface.co/spaces/multimodalart/latentdiffusion' target='_blank'>Multimodalart</a>.</div>"
|
53 |
)
|
54 |
+
with gr.Row():
|
55 |
+
input_word = gr.Textbox(placeholder="Enter a word here to create a Poem on..")
|
56 |
+
poem_txt = gr.Textbox(lines=7)
|
57 |
+
output_image = gr.Image(type="filepath", shape=(256,256))
|
58 |
+
|
59 |
b1 = gr.Button("Generate Poem")
|
60 |
b2 = gr.Button("Generate Image")
|
61 |
|