File size: 288 Bytes
fee252b
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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()