Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,21 +7,21 @@ def extend_prompt(prompt):
|
|
7 |
return pipe(prompt+',', num_return_sequences=1)[0]["generated_text"]
|
8 |
|
9 |
examples = [
|
10 |
-
['
|
11 |
-
["
|
12 |
-
['
|
13 |
-
["a
|
14 |
-
["
|
15 |
]
|
16 |
|
17 |
iface = gr.Interface(
|
18 |
description = "Enter a main idea for a prompt, and the model will attempt to add suitable style cues.",
|
19 |
-
article = "<p style='text-align: center'><a href='https://github.com/
|
20 |
fn=extend_prompt,
|
21 |
inputs=gr.Text(label="Type the prompt here"),
|
22 |
outputs=gr.TextArea(label='Extended prompt'),
|
23 |
examples=examples,
|
24 |
-
title="Prompt
|
25 |
)
|
26 |
|
27 |
iface.launch()
|
|
|
7 |
return pipe(prompt+',', num_return_sequences=1)[0]["generated_text"]
|
8 |
|
9 |
examples = [
|
10 |
+
['a carnival of robots in a neon cityscape'],
|
11 |
+
["a mermaid playing electric guitar underwater"],
|
12 |
+
['a swarm of fireflies illuminating a moonlit forest'],
|
13 |
+
["a time-traveling pirate ship sailing through a storm of stars"],
|
14 |
+
["a mystical portal hidden in a waterfall"],
|
15 |
]
|
16 |
|
17 |
iface = gr.Interface(
|
18 |
description = "Enter a main idea for a prompt, and the model will attempt to add suitable style cues.",
|
19 |
+
article = "<p style='text-align: center'><a href='https://github.com/PRITHIVSAKTHIUR/Prompt-Extender-Gpt' target='_blank'>🫙🪶</a></p>",
|
20 |
fn=extend_prompt,
|
21 |
inputs=gr.Text(label="Type the prompt here"),
|
22 |
outputs=gr.TextArea(label='Extended prompt'),
|
23 |
examples=examples,
|
24 |
+
title="Prompt Extender"
|
25 |
)
|
26 |
|
27 |
iface.launch()
|