Spaces:
Sleeping
Sleeping
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() | |