File size: 241 Bytes
fe97494
 
 
 
 
9ef5d40
5198906
fe97494
 
 
 
 
246ed26
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(2.4)
    return text

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