File size: 460 Bytes
14566e4
732d546
14566e4
 
ff60146
14566e4
e25cd92
 
 
c906021
e25cd92
 
 
 
14566e4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr

def respond_to_input(user_input):
    return f"You said: {user_input}"

with gr.Blocks() as demo:
    # Define the input and output components
    input_textbox = gr.Textbox(label="Input", placeholder="Type something...")
    output_textbox = gr.Textbox(label="Output")

    # Link the input to the output
    input_textbox.submit(respond_to_input, inputs=input_textbox, outputs=output_textbox)

# Launch the Gradio interface
demo.launch()