Update app.py
Browse files
app.py
CHANGED
|
@@ -11,8 +11,8 @@ def generate(prompt):
|
|
| 11 |
output = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)
|
| 12 |
return output[0]
|
| 13 |
|
| 14 |
-
input_component = gr.Textbox(label = "Input a persona, e.g.
|
| 15 |
output_component = gr.Textbox(label = "Prompt")
|
| 16 |
examples = [["photographer"], ["developer"]]
|
| 17 |
description = "This app generates βζεΏδΈθ¨β prompts π Simply enter a character setting that you want the prompt to be generated based on. π§π»π§π»βππ§π»βπ¨π§π»βπ¬π§π»βπ»π§πΌβπ«π§π½βπΎ"
|
| 18 |
-
gr.Interface(generate, inputs = input_component, outputs=output_component, examples=examples, title = "
|
|
|
|
| 11 |
output = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)
|
| 12 |
return output[0]
|
| 13 |
|
| 14 |
+
input_component = gr.Textbox(label = "Input a persona, e.g. developer", value = "developer")
|
| 15 |
output_component = gr.Textbox(label = "Prompt")
|
| 16 |
examples = [["photographer"], ["developer"]]
|
| 17 |
description = "This app generates βζεΏδΈθ¨β prompts π Simply enter a character setting that you want the prompt to be generated based on. π§π»π§π»βππ§π»βπ¨π§π»βπ¬π§π»βπ»π§πΌβπ«π§π½βπΎ"
|
| 18 |
+
gr.Interface(generate, inputs = input_component, outputs=output_component, examples=examples, title = "πΊ PromptGen πΊ", description=description).launch()
|