File size: 181 Bytes
f7ade3a
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import time
import gradio as gr

def spell(x):
    i = 0
    while True:
        i += 1
        time.sleep(1)
        yield x[:i]

gr.Interface(spell, "textbox", "textbox").launch()