Spaces:
Runtime error
Runtime error
File size: 494 Bytes
d0093e5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | def copy(src_sentence):
return src_sentence
with gr.Blocks(title="Copier") as demo:
gr.Markdown("# Copier")
with gr.Row():
with gr.Column():
src_sentence = gr.Textbox(label="Source text", placeholder="Write your text...")
with gr.Column():
tgt_sentence = gr.Textbox(label="Copy", placeholder="Copy will show here...")
btn = gr.Button("Copy!")
btn.click(fn=copy, inputs=[src_sentence], outputs=[tgt_sentence])
demo.launch()
|