AIlexDev commited on
Commit
d2b2ee3
·
1 Parent(s): 01fe5d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -7
app.py CHANGED
@@ -1,14 +1,20 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
- generator = pipeline("text2text-generation", model="merve/chatgpt-prompts-bart-long")
 
 
5
 
6
- def generate_prompt(prompt):
7
- output = generator(prompt, max_length=250)
8
- return output[0]['generated_text']
 
 
 
 
 
 
 
9
 
10
- iface = gr.Interface(fn=generate_prompt, inputs="text", outputs="text", title="💯 Einfach.Prompt Generator 💯 made with ",
11
- description="Wunsch prompt eingeben z.b. Web Designer und einen prompt für Chat.GPT erstellen lassen",
12
- theme="huggingface")
13
 
14
  iface.launch()
 
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
+ iface = gr.Interface(fn=deine_funktion, inputs=dein_input, outputs=dein_output)
5
+ iface.theme = './style.css'
6
+ iface.launch()
7
 
8
+ title = "Prompt Dich weiter mit Einfach.Prompt"
9
+ description = """
10
+ <p>
11
+ <center>
12
+ Big THX at Merve for this great and first Modell by Bart..
13
+ <img src="https://huggingface.co/spaces/EinfachAilex/einfach.prompt/blob/main/cover.png" alt="rick" width="250"/>
14
+ </center>
15
+ </p>
16
+ """
17
+ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/1907.06616' target='_blank'>Recipes for building an open-domain chatbot</a></p><p style='text-align: center'><a href='https://parl.ai/projects/recipes/' target='_blank'>Original PARLAI Code</a></p></center></p>"
18
 
 
 
 
19
 
20
  iface.launch()