File size: 215 Bytes
fe97494
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr
import time


def generate():
    text = "Hello, this is a demo without using streaming that emulates a model"
    time.sleep(3)

gr.Interface(
    generate,
    inputs=None,
    outputs="text"
)