File size: 206 Bytes
c4ef1ac
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import time
import gradio as gr

def slow_echo(message, history):
    for i in range(len(message)):
        time.sleep(0.3)
        yield "You typed: " + message[: i+1]

gr.ChatInterface(slow_echo).launch()