abidlabs HF Staff commited on
Commit
c3e79bb
·
1 Parent(s): 70cc0ce

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import time
2
+ import gradio as gr
3
+
4
+ def spell(x):
5
+ for i in range(len(x)):
6
+ time.sleep(1)
7
+ yield x[:i]
8
+
9
+ gr.Interface(spell, "textbox", "textbox").launch()