abidlabs HF Staff commited on
Commit
f7ade3a
·
1 Parent(s): 662da0e

Create app.py

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