Skip to content

Commit bea7934

Browse files
committed
delete some bug
1 parent a9645ab commit bea7934

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

gen02.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import random
2-
prompt = '''
3-
photorealistic,
2+
prompt = '''photorealistic,
43
dramatic,
54
dramatic color,
65
liquid,
@@ -591,13 +590,12 @@
591590
Your Name anime art style,
592591
Nature Sunsets,
593592
Sunsets,
594-
Synthwave,
595-
'''.splitlines()
593+
Synthwave,'''.splitlines()
596594
vocab = len(prompt)
597595
#num_word = input(f'Max word (Max {vocab - 1}): ')
598596
generated = []
599597
num_word = 13
600598
for i in range(int(num_word)):
601599
rand = random.randint(0, vocab)
602-
generated.append(prompt[rand])
600+
generated.append(prompt[rand-1])
603601
print(' '.join(generated))

generator.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import random
2-
prompt = '''
3-
photorealistic,
2+
prompt = '''photorealistic,
43
dramatic,
54
dramatic color,
65
liquid,
@@ -215,13 +214,12 @@
215214
Your Name anime art style,
216215
Nature Sunsets,
217216
Sunsets,
218-
Synthwave,
219-
'''.splitlines()
217+
Synthwave,'''.splitlines()
220218
vocab = len(prompt)
221219
#num_word = input(f'Max word (Max {vocab - 1}): ')
222220
generated = []
223221
num_word = 17
224222
for i in range(int(num_word)):
225223
rand = random.randint(0, vocab)
226-
generated.append(prompt[rand])
224+
generated.append(prompt[rand-1])
227225
print(' '.join(generated))

0 commit comments

Comments
 (0)