Haider / app.py
Haider1396's picture
Create app.py
adccfdd verified
raw
history blame contribute delete
329 Bytes
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()