awacke1 commited on
Commit
075c2b0
1 Parent(s): 031b9b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -95,19 +95,18 @@ with demo:
95
  gr.Markdown("https://huggingface.co/blog/few-shot-learning-gpt-neo-and-inference-api, https://github.com/EleutherAI/the-pile")
96
  with gr.Row():
97
  input_word = gr.Textbox(lines=7, value=prompt)
98
-
99
- examples=[["living, loving, feeling good"], ["I want to live. I want to give."],["Ive been to Hollywood. Ive been to Redwood"]]
100
- example_text = gr.Dataset(components=[input_word], samples=examples)
101
- example_text.click(fn=set_example,inputs = example_text,outputs= example_text.components)
102
-
103
  poem_txt = gr.Textbox(lines=7)
104
  output_image = gr.Image(type="filepath", shape=(256,256))
105
 
106
  b1 = gr.Button("Generate Text")
107
  b2 = gr.Button("Generate Image")
108
-
109
  b1.click(poem2_generate, input_word, poem_txt)
110
  b2.click(poem_to_image, poem_txt, output_image)
111
 
 
 
 
 
112
 
113
  demo.launch(enable_queue=True, debug=True)
95
  gr.Markdown("https://huggingface.co/blog/few-shot-learning-gpt-neo-and-inference-api, https://github.com/EleutherAI/the-pile")
96
  with gr.Row():
97
  input_word = gr.Textbox(lines=7, value=prompt)
 
 
 
 
 
98
  poem_txt = gr.Textbox(lines=7)
99
  output_image = gr.Image(type="filepath", shape=(256,256))
100
 
101
  b1 = gr.Button("Generate Text")
102
  b2 = gr.Button("Generate Image")
103
+
104
  b1.click(poem2_generate, input_word, poem_txt)
105
  b2.click(poem_to_image, poem_txt, output_image)
106
 
107
+ examples=[["living, loving,"], ["I want to live. I want to give."],["Ive been to Hollywood. Ive been to Redwood"]]
108
+ example_text = gr.Dataset(components=[input_word], samples=examples)
109
+ example_text.click(fn=set_example,inputs = example_text,outputs= example_text.components)
110
+
111
 
112
  demo.launch(enable_queue=True, debug=True)