import gradio as gr
from transformers import pipeline
title = "Prompt Dich weiter mit Einfach.Prompt"
description = """
Big THX at Merve for this great and first Modell by Bart..
"""
article = "Recipes for building an open-domain chatbot
Original PARLAI Code
"
generator = pipeline("text2text-generation", model="merve/chatgpt-prompts-bart-long")
def generate_prompt(prompt):
output = generator(prompt, max_length=250)
return output[0]['generated_text']
interface = gr.Interface(fn=generate_prompt, inputs="text", outputs="text", title="💯 Einfach.Prompt Generator 💯 made with ",
description="Wunsch prompt eingeben z.b. Web Designer und einen prompt für Chat.GPT erstellen lassen")
interface.launch()