import gradio as gr
def echo_text(input_text):
return input_text
# Custom HTML and JavaScript 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="text"),
live=True
)
iface.launch()