Spaces:
Runtime error
Runtime error
TogetherAI
commited on
Commit
Β·
e974db0
1
Parent(s):
b68e29b
Update app.py
Browse files
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
|
14 |
-
output_component = gr.Textbox(label
|
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
|
21 |
-
outputs
|
22 |
-
examples
|
23 |
-
title
|
24 |
-
description
|
25 |
-
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()
|