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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -32,10 +32,11 @@ def generate(starting_text):
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,
@@ -43,6 +44,7 @@ grad.Interface(fn=generate,
43
  outputs=out,
44
  examples=examples,
45
  title=title,
 
46
  article=article,
47
  allow_flagging='never',
48
  cache_examples=False,
 
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 = "Midjourney Prompt Generator"
39
+ description = "This is an unofficial demo for Midjourney Prompt Generator. To use it, simply send your text, or click one of the examples to load them. Read more at the links below.<br>Model: https://huggingface.co/succinctly/text2image-prompt-generator<br>Telegram bot: https://t.me/prompt_generator_bot<br>[![](https://img.shields.io/twitter/follow/DoEvent?label=@DoEvent&style=social)](https://twitter.com/DoEvent)"
40
  article = "<div><center><img src='https://visitor-badge.glitch.me/badge?page_id=max_skobeev_prompt_generator_public' alt='visitor badge'></center></div>"
41
 
42
  grad.Interface(fn=generate,
 
44
  outputs=out,
45
  examples=examples,
46
  title=title,
47
+ description=description,
48
  article=article,
49
  allow_flagging='never',
50
  cache_examples=False,