TogetherAI commited on
Commit
e974db0
Β·
1 Parent(s): b68e29b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -10,17 +10,17 @@ def generate(prompt):
10
  output = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)
11
  return output[0]
12
 
13
- input_component = gr.Textbox(label = "Input a persona, e.g. photographer", value = "photographer")
14
- output_component = gr.Textbox(label = "Prompt")
15
  examples = [["photographer"], ["developer"]]
16
  description = "This app generates ChatGPT prompts, it's based on a BART model trained on [this dataset](https://huggingface.co/datasets/fka/awesome-chatgpt-prompts). πŸ““ Simply enter a persona that you want the prompt to be generated based on. πŸ§™πŸ»πŸ§‘πŸ»β€πŸš€πŸ§‘πŸ»β€πŸŽ¨πŸ§‘πŸ»β€πŸ”¬πŸ§‘πŸ»β€πŸ’»πŸ§‘πŸΌβ€πŸ«πŸ§‘πŸ½β€πŸŒΎ"
17
 
18
  gr.Interface(
19
  generate,
20
- inputs = input_component,
21
- outputs = output_component,
22
- examples = examples,
23
- title = "πŸ‘¨πŸ»β€πŸŽ€ ChatGPT Prompt Generator πŸ‘¨πŸ»β€πŸŽ€",
24
- description = description,
25
- theme = "ParityError/Interstellar" # Ihr spezifiziertes Theme
26
  ).launch()
 
10
  output = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)
11
  return output[0]
12
 
13
+ input_component = gr.Textbox(label="Input a persona, e.g. photographer", value="photographer")
14
+ output_component = gr.Textbox(label="Prompt")
15
  examples = [["photographer"], ["developer"]]
16
  description = "This app generates ChatGPT prompts, it's based on a BART model trained on [this dataset](https://huggingface.co/datasets/fka/awesome-chatgpt-prompts). πŸ““ Simply enter a persona that you want the prompt to be generated based on. πŸ§™πŸ»πŸ§‘πŸ»β€πŸš€πŸ§‘πŸ»β€πŸŽ¨πŸ§‘πŸ»β€πŸ”¬πŸ§‘πŸ»β€πŸ’»πŸ§‘πŸΌβ€πŸ«πŸ§‘πŸ½β€πŸŒΎ"
17
 
18
  gr.Interface(
19
  generate,
20
+ inputs=input_component,
21
+ outputs=output_component,
22
+ examples=examples,
23
+ title="πŸ‘¨πŸ»β€πŸŽ€ ChatGPT Prompt Generator πŸ‘¨πŸ»β€πŸŽ€",
24
+ description=description,
25
+ theme="ParityError/Interstellar" # HinzugefΓΌgtes Theme
26
  ).launch()