theQuert commited on
Commit
2284b92
·
1 Parent(s): cb95565

Move ``Copy Updated Article to Clipboard``under ``Submit``button

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -328,11 +328,11 @@ with gr.Blocks() as demo:
328
  input_1 = gr.Textbox(label="Non-updated Article", lines=2, placeholder="Input the contexts...")
329
  input_2 = gr.Textbox(label="Triggered News Event", lines=2, placeholder="Input the triggered news event...")
330
  btn = gr.Button(value="Submit")
331
- btn_copy = gr.Button(value="Copy to Clipboard")
332
  with gr.Row():
333
  output_1 = gr.Textbox(label="Updated Article", lines=10)
334
  output_2 = gr.Textbox(label="#MODIFIED / #ALL")
335
  btn.click(fn=main, inputs=[input_1, input_2], outputs=[output_1, output_2])
 
336
  btn_copy.click(fn=copy_to_clipboard, inputs=[output_1], outputs=[])
337
  gr.Markdown("## Input Examples")
338
  gr.Examples(
 
328
  input_1 = gr.Textbox(label="Non-updated Article", lines=2, placeholder="Input the contexts...")
329
  input_2 = gr.Textbox(label="Triggered News Event", lines=2, placeholder="Input the triggered news event...")
330
  btn = gr.Button(value="Submit")
 
331
  with gr.Row():
332
  output_1 = gr.Textbox(label="Updated Article", lines=10)
333
  output_2 = gr.Textbox(label="#MODIFIED / #ALL")
334
  btn.click(fn=main, inputs=[input_1, input_2], outputs=[output_1, output_2])
335
+ btn_copy = gr.Button(value="Copy Updated Article to Clipboard")
336
  btn_copy.click(fn=copy_to_clipboard, inputs=[output_1], outputs=[])
337
  gr.Markdown("## Input Examples")
338
  gr.Examples(