import gradio as gr
def echo_text(input_text):
return input_text
# Custom HTML and CSS to display input above output
custom_interface = """
"""
iface = gr.Interface(
fn=echo_text,
inputs=gr.HTML(custom_interface), # Use custom HTML interface
outputs=gr.Textbox("Output will be displayed here.", type="output"),
live=True
)
iface.launch()