test-yield / app.py
abidlabs's picture
abidlabs HF Staff
Create app.py
c3e79bb
raw
history blame contribute delete
168 Bytes
import time
import gradio as gr
def spell(x):
for i in range(len(x)):
time.sleep(1)
yield x[:i]
gr.Interface(spell, "textbox", "textbox").launch()