phenomenon1981 commited on
Commit
04d51d9
·
1 Parent(s): 328e66f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -28,15 +28,15 @@ def generate(starting_text):
28
 
29
  if response_end != "":
30
  return response_end
31
-
 
 
32
 
33
 
34
  txt = grad.Textbox(lines=1, label="Initial Text", placeholder="Enter a basic idea")
35
  out = grad.Textbox(lines=5, label="Generated Prompts")
36
 
37
- examples = []
38
- for x in range(8):
39
- examples.append(line[random.randrange(0, len(line))].replace("\n", "").capitalize())
40
 
41
  title = "The Stable Diffusion Prompt Generator - because your text needs a little more visual spice."
42
  description = 'Welcome to the MagicPrompt demo for Stable Diffusion! Ready to see some magic happen? Simply type in your text or check out the pre-made examples. Feeling lazy? No problem, just hit the Submit button and it will randomly pull from a list of thousands of ideas for you.<br>'
 
28
 
29
  if response_end != "":
30
  return response_end
31
+ examples = []
32
+ for x in range(8):
33
+ examples.append(line[random.randrange(0, len(line))].replace("\n", "").capitalize())
34
 
35
 
36
  txt = grad.Textbox(lines=1, label="Initial Text", placeholder="Enter a basic idea")
37
  out = grad.Textbox(lines=5, label="Generated Prompts")
38
 
39
+
 
 
40
 
41
  title = "The Stable Diffusion Prompt Generator - because your text needs a little more visual spice."
42
  description = 'Welcome to the MagicPrompt demo for Stable Diffusion! Ready to see some magic happen? Simply type in your text or check out the pre-made examples. Feeling lazy? No problem, just hit the Submit button and it will randomly pull from a list of thousands of ideas for you.<br>'