prithivMLmods commited on
Commit
e62241f
·
verified ·
1 Parent(s): e4074de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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
- ['elon musk as thor'],
11
- ["giant dragon flying in the sky"],
12
- ['psychedelic liquids space'],
13
- ["a coconut laying on the beach"],
14
- ["peaceful village landscape"],
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/daspartho/prompt-extend' target='_blank'>Github</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 Extend"
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()