import gradio as gr | |
def text_streaming(input_text): | |
# Process the input text (you can replace this with your logic) | |
output_text = f"You entered: {input_text}" | |
return output_text | |
iface = gr.Interface(fn=text_streaming, inputs="text", outputs="text", live=True) | |
iface.launch() |