osanseviero commited on
Commit
edf578e
·
1 Parent(s): 8a85317

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import time
3
+
4
+
5
+ def generate():
6
+ text = "Hello, this is a demo without using streaming that emulates a model"
7
+ for word in text.split():
8
+ time.sleep(0.25)
9
+ yield word
10
+
11
+ gr.Interface(
12
+ generate,
13
+ inputs=None,
14
+ outputs="text"
15
+ ).launch()