File size: 329 Bytes
adccfdd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr

# Function to echo user input
def echo_input(user_input):
    return user_input

# Create Gradio interface
iface = gr.Interface(
    fn=echo_input,
    inputs=gr.Textbox(label="Enter some text", placeholder="Type something..."),
    outputs=gr.Textbox(label="You entered")
)

# Launch the app
iface.launch()