jslin09 commited on
Commit
fee72ff
·
1 Parent(s): 21ead56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -47,14 +47,14 @@ with gr.Blocks() as demo:
47
  """)
48
  with gr.Row():
49
  with gr.Column():
50
- result = gr.components.Textbox(lines=7, label="Writing Assist")
51
  prompt = gr.components.Textbox(lines=2, label="Prompt", placeholder=examples[0], visible=False)
52
  gr.Examples(examples, label='Examples', inputs=[prompt])
53
  prompt.change(generate, inputs=[prompt], outputs=[result])
54
  btn = gr.Button("Next sentence")
55
  btn.click(generate, inputs=[result], outputs=[result])
56
  with gr.Column():
57
- result2 = gr.components.Textbox(lines=7, label="Random Generative", show_label=True, placeholder=examples[0])
58
  gr.Examples(examples, label='Examples', inputs=[result2])
59
  btn = gr.Button("Random Drafting")
60
  btn.click(rnd_generate, inputs=[result2], outputs=[result2])
 
47
  """)
48
  with gr.Row():
49
  with gr.Column():
50
+ result = gr.components.Textbox(lines=7, label="Writing Assist", placeholder=examples[0])
51
  prompt = gr.components.Textbox(lines=2, label="Prompt", placeholder=examples[0], visible=False)
52
  gr.Examples(examples, label='Examples', inputs=[prompt])
53
  prompt.change(generate, inputs=[prompt], outputs=[result])
54
  btn = gr.Button("Next sentence")
55
  btn.click(generate, inputs=[result], outputs=[result])
56
  with gr.Column():
57
+ result2 = gr.components.Textbox(lines=7, label="Random Generative", show_label=True, placeholder=examples[1])
58
  gr.Examples(examples, label='Examples', inputs=[result2])
59
  btn = gr.Button("Random Drafting")
60
  btn.click(rnd_generate, inputs=[result2], outputs=[result2])