Spaces:
Runtime error

File size: 252 Bytes
d57cc7a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import time

import gradio as gr

def greet(name):
    r = ''
    for c in "Hello " + name:
        r += c
        yield r
        time.sleep(0.1)

demo = gr.Interface(
    fn=greet,
    inputs=['text'],
    outputs=['text'],
)

demo.launch(share=True)