prithivMLmods commited on
Commit
82cfe4f
·
verified ·
1 Parent(s): 1fd5c6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -6,14 +6,18 @@ pipe = pipeline('text-generation', model='daspartho/prompt-extend')
6
  def extend_prompt(prompt):
7
  return pipe(prompt+',', num_return_sequences=1)[0]["generated_text"]
8
 
9
-
10
-
11
  iface = gr.Interface(
12
- description = " ",
13
  fn=extend_prompt,
14
  inputs=gr.Text(label="Type the prompt here"),
15
  outputs=gr.TextArea(label='Extended prompt'),
16
  title="PROMPT EXTENDER",
17
- )
 
 
 
 
 
 
18
 
19
- iface.launch()
 
6
  def extend_prompt(prompt):
7
  return pipe(prompt+',', num_return_sequences=1)[0]["generated_text"]
8
 
 
 
9
  iface = gr.Interface(
10
+ description="Extend your prompts with the power of AI!",
11
  fn=extend_prompt,
12
  inputs=gr.Text(label="Type the prompt here"),
13
  outputs=gr.TextArea(label='Extended prompt'),
14
  title="PROMPT EXTENDER",
15
+ examples=[
16
+ ["Write a creative story about a robot learning to paint."],
17
+ ["Generate a poem about the beauty of nature."],
18
+ ["Create a dialogue between a detective and a suspect."],
19
+ ["Imagine a futuristic city where technology and art blend seamlessly."]
20
+ ]
21
+ )
22
 
23
+ iface.launch()