Textwizai / app.py
Erfan11's picture
Update app.py
e25cd92 verified
raw
history blame
460 Bytes
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()