CoolFace
Apppublic

0xcyborg/help

sourceHugging Faceupdated 4y agoView on Hugging Face
0likes
app.py18 linesDownload Raw Back to root
1from transformers import pipeline2import gradio as gr3 4pipe = pipeline('text-generation', model='daspartho/prompt-extend')5 6def extend_prompt(prompt):7    return pipe(prompt+',', num_return_sequences=1)[0]["generated_text"]8 9iface = gr.Interface(10    description = "help prompts",11    article = "prompts",12    fn=extend_prompt, 13    inputs=gr.Text(label="l"), 14    outputs=gr.TextArea(label='p'),15    title="Helping"16    )17 18iface.launch()