mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-15 02:11:15 +08:00
a1509850dc
* soft reset and remove a commit, then commit the further commits again * fix flagging for tests * format fix * fixes Co-authored-by: Ali <aliabid94@gmail.com>
20 lines
368 B
Python
20 lines
368 B
Python
import gradio as gr
|
|
|
|
str = """Hello friends
|
|
hello friends
|
|
|
|
Hello friends
|
|
|
|
"""
|
|
|
|
|
|
with gr.Blocks() as demo:
|
|
txt = gr.Textbox(label="Input", lines=5)
|
|
txt_2 = gr.Textbox(label="Output")
|
|
txt_3 = gr.Textbox(str, label="Output")
|
|
btn = gr.Button("Submit")
|
|
btn.click(lambda a: a, inputs=[txt], outputs=[txt_2])
|
|
|
|
if __name__ == "__main__":
|
|
demo.launch()
|