Fix indentation weirdness in GPT-2 example.
This commit is contained in:
@@ -107,7 +107,7 @@ def run_model():
|
||||
print("=" * 40 + " SAMPLE " + str(generated) + " " + "=" * 40)
|
||||
print(text)
|
||||
print("=" * 80)
|
||||
if args.unconditional:
|
||||
else:
|
||||
generated = 0
|
||||
for _ in range(args.nsamples // args.batch_size):
|
||||
out = sample_sequence(
|
||||
@@ -124,8 +124,6 @@ def run_model():
|
||||
print("=" * 40 + " SAMPLE " + str(generated) + " " + "=" * 40)
|
||||
print(text)
|
||||
print("=" * 80)
|
||||
if args.unconditional:
|
||||
break
|
||||
|
||||
if __name__ == '__main__':
|
||||
run_model()
|
||||
|
||||
Reference in New Issue
Block a user