jslin09 commited on
Commit
a186a94
1 Parent(s): f7ad705

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -71,7 +71,8 @@ with gr.Blocks() as demo:
71
  btn = gr.Button("Next sentence")
72
  btn.click(generate, inputs=[result], outputs=[result])
73
  with gr.Tab("Random Generative"):
74
- result2 = gr.components.Textbox(lines=7, label="Random Generative", show_label=True, placeholder=prompts[1])
 
75
  gr.Examples(examples, label='Examples', inputs=[result2])
76
  rnd_btn = gr.Button("Random Drafting")
77
  rnd_btn.click(rnd_generate, inputs=[result2], outputs=[result2])
 
71
  btn = gr.Button("Next sentence")
72
  btn.click(generate, inputs=[result], outputs=[result])
73
  with gr.Tab("Random Generative"):
74
+ # result2 = gr.components.Textbox(lines=7, label="Random Generative", show_label=True, placeholder=prompts[1])
75
+ result2 = gr.components.Textbox(lines=7, label="Random Generative", show_label=True, value = examples[0])
76
  gr.Examples(examples, label='Examples', inputs=[result2])
77
  rnd_btn = gr.Button("Random Drafting")
78
  rnd_btn.click(rnd_generate, inputs=[result2], outputs=[result2])