ysharma HF staff commited on
Commit
dc7da60
Β·
1 Parent(s): 30fab0b
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -15,7 +15,8 @@ it took
15
  to blossom.
16
 
17
  word: """
18
- #examples = [["the roads are lovely dark and deep"], ["to be or not to be is the question, isn't it"], ["Elon Musk is not sure about "]]
 
19
 
20
 
21
  def poem_generate(word):
@@ -50,8 +51,8 @@ demo = gr.Blocks()
50
  with demo:
51
  gr.Markdown("<h1><center>Generate Short Poem along with an Illustration</center></h1>")
52
  gr.Markdown(
53
- "<div>Enter a single word you would want GPTJ-6B to write poetry on.</div>"
54
- "<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>"
55
  )
56
  with gr.Row():
57
  input_word = gr.Textbox(placeholder="Enter a word here to create a Poem on..")
@@ -63,5 +64,6 @@ with demo:
63
 
64
  b1.click(poem_generate, input_word, poem_txt)
65
  b2.click(poem_to_image, poem_txt, output_image)
 
66
 
67
  demo.launch(enable_queue=True, debug=True)
 
15
  to blossom.
16
 
17
  word: """
18
+
19
+ examples = [["river"], ["night"], ["trees"],["table"],["laughs"]]
20
 
21
 
22
  def poem_generate(word):
 
51
  with demo:
52
  gr.Markdown("<h1><center>Generate Short Poem along with an Illustration</center></h1>")
53
  gr.Markdown(
54
+ "<div>Enter a single word you would want GPTJ-6B to write Poetry 🎀 on.</div>"
55
+ "<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 😁"
56
  )
57
  with gr.Row():
58
  input_word = gr.Textbox(placeholder="Enter a word here to create a Poem on..")
 
64
 
65
  b1.click(poem_generate, input_word, poem_txt)
66
  b2.click(poem_to_image, poem_txt, output_image)
67
+ examples=examples
68
 
69
  demo.launch(enable_queue=True, debug=True)