Spaces:
Sleeping
Sleeping
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() |