File size: 282 Bytes
16d5400
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import gradio as gr
import net

def generate(text):
    o = text
    r = []
    for i in range(5):
        t = net.gen(o)
        o += " " + t
        r.append(t)
    return text + " *"+' '.join(r)+"*"

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