Spaces:
Runtime error
Runtime error
app.py
CHANGED
|
@@ -84,20 +84,18 @@ demo = gr.Blocks()
|
|
| 84 |
with demo:
|
| 85 |
gr.Markdown("<h1><center>Generate Short Poem along with an Illustration</center></h1>")
|
| 86 |
gr.Markdown(
|
| 87 |
-
"""
|
| 88 |
)
|
| 89 |
-
gr.Markdown("""<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>Please note that some of the Poems/Illustrations might not look at par, and well, this is what happens when you can't 'cherry-pick' and post π <div> Some of the example words that you can use are 'river', 'night', 'trees', 'table', 'laughs' or maybe on similar lines to get best results!"""
|
| 90 |
-
)
|
| 91 |
with gr.Row():
|
| 92 |
input_word = gr.Textbox(placeholder="Enter a word here to create a Poem on..")
|
| 93 |
poem_txt = gr.Textbox(lines=7)
|
| 94 |
output_image = gr.Image(type="filepath", shape=(256,256))
|
| 95 |
|
| 96 |
b1 = gr.Button("Generate Poem")
|
| 97 |
-
b2 = gr.Button("Generate Image")
|
| 98 |
|
| 99 |
b1.click(poem_generate, input_word, poem_txt)
|
| 100 |
-
b2.click(poem_to_image, poem_txt, output_image)
|
| 101 |
#examples=examples
|
| 102 |
|
| 103 |
demo.launch(enable_queue=True, debug=True)
|
|
|
|
| 84 |
with demo:
|
| 85 |
gr.Markdown("<h1><center>Generate Short Poem along with an Illustration</center></h1>")
|
| 86 |
gr.Markdown(
|
| 87 |
+
"""Testing Bloom """
|
| 88 |
)
|
|
|
|
|
|
|
| 89 |
with gr.Row():
|
| 90 |
input_word = gr.Textbox(placeholder="Enter a word here to create a Poem on..")
|
| 91 |
poem_txt = gr.Textbox(lines=7)
|
| 92 |
output_image = gr.Image(type="filepath", shape=(256,256))
|
| 93 |
|
| 94 |
b1 = gr.Button("Generate Poem")
|
| 95 |
+
#b2 = gr.Button("Generate Image")
|
| 96 |
|
| 97 |
b1.click(poem_generate, input_word, poem_txt)
|
| 98 |
+
#b2.click(poem_to_image, poem_txt, output_image)
|
| 99 |
#examples=examples
|
| 100 |
|
| 101 |
demo.launch(enable_queue=True, debug=True)
|