File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1
1
import random
2
- prompt = '''
3
- photorealistic,
2
+ prompt = '''photorealistic,
4
3
dramatic,
5
4
dramatic color,
6
5
liquid,
591
590
Your Name anime art style,
592
591
Nature Sunsets,
593
592
Sunsets,
594
- Synthwave,
595
- ''' .splitlines ()
593
+ Synthwave,''' .splitlines ()
596
594
vocab = len (prompt )
597
595
#num_word = input(f'Max word (Max {vocab - 1}): ')
598
596
generated = []
599
597
num_word = 13
600
598
for i in range (int (num_word )):
601
599
rand = random .randint (0 , vocab )
602
- generated .append (prompt [rand ])
600
+ generated .append (prompt [rand - 1 ])
603
601
print (' ' .join (generated ))
Original file line number Diff line number Diff line change 1
1
import random
2
- prompt = '''
3
- photorealistic,
2
+ prompt = '''photorealistic,
4
3
dramatic,
5
4
dramatic color,
6
5
liquid,
215
214
Your Name anime art style,
216
215
Nature Sunsets,
217
216
Sunsets,
218
- Synthwave,
219
- ''' .splitlines ()
217
+ Synthwave,''' .splitlines ()
220
218
vocab = len (prompt )
221
219
#num_word = input(f'Max word (Max {vocab - 1}): ')
222
220
generated = []
223
221
num_word = 17
224
222
for i in range (int (num_word )):
225
223
rand = random .randint (0 , vocab )
226
- generated .append (prompt [rand ])
224
+ generated .append (prompt [rand - 1 ])
227
225
print (' ' .join (generated ))
You can’t perform that action at this time.
0 commit comments