AlterM's picture
Duplicate from RisticksAI/Zaglyt2-transformer-test
16d5400
raw
history blame
282 Bytes
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()