Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,8 @@ outs = nlp(prompt, max_length=76, num_return_sequences=10, do_sample=True, repet
|
|
15 |
print('\nInput:\n' + 100 * '-')
|
16 |
print('\033[96m' + prompt + '\033[0m')
|
17 |
print('\nOutput:\n' + 100 * '-')
|
18 |
-
|
|
|
19 |
# remove trailing commas and double spaces
|
20 |
# outs[i] = str(outs[i]['generated_text']).replace(' ', '').rstrip(',')
|
21 |
# print('\033[92m' + '\n\n'.join(outs) + '\033[0m\n')
|
|
|
15 |
print('\nInput:\n' + 100 * '-')
|
16 |
print('\033[96m' + prompt + '\033[0m')
|
17 |
print('\nOutput:\n' + 100 * '-')
|
18 |
+
print(outs)
|
19 |
+
# for i in range(len(outs)):
|
20 |
# remove trailing commas and double spaces
|
21 |
# outs[i] = str(outs[i]['generated_text']).replace(' ', '').rstrip(',')
|
22 |
# print('\033[92m' + '\n\n'.join(outs) + '\033[0m\n')
|