doevent commited on
Commit
67c15e0
1 Parent(s): 9c4db5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -31,13 +31,17 @@ def generate(starting_text):
31
 
32
 
33
  txt = grad.Textbox(lines=1, label="English", placeholder="English Text here")
34
- out = grad.Textbox(lines=5, label="Generated Text")
 
 
 
35
  title = "Prompt Generator"
36
  article = "<div><center><img src='https://visitor-badge.glitch.me/badge?page_id=max_skobeev_prompt_generator_public' alt='visitor badge'></center></div>"
37
 
38
  grad.Interface(fn=generate,
39
  inputs=txt,
40
  outputs=out,
 
41
  title=title,
42
  article=article,
43
  allow_flagging='never',
 
31
 
32
 
33
  txt = grad.Textbox(lines=1, label="English", placeholder="English Text here")
34
+ out = grad.Textbox(lines=6, label="Generated Text")
35
+ examples = [["mythology of the Slavs"], ["All-seeing eye monitors these world"], ["astronaut dog"],
36
+ ["A monochrome forest of ebony trees"], ["sad view of worker in office,"],
37
+ ["Headshot photo portrait of John Lennon"], ["wide field with thousands of blue nemophila,"]]
38
  title = "Prompt Generator"
39
  article = "<div><center><img src='https://visitor-badge.glitch.me/badge?page_id=max_skobeev_prompt_generator_public' alt='visitor badge'></center></div>"
40
 
41
  grad.Interface(fn=generate,
42
  inputs=txt,
43
  outputs=out,
44
+ examples=examples,
45
  title=title,
46
  article=article,
47
  allow_flagging='never',