"examples/vscode:/vscode.git/clone" did not exist on "c89bdfbe720bc8f41c7dc6db5473a2cb0955f224"
Commit 14b1f719 authored by Sangwhan Moon's avatar Sangwhan Moon
Browse files

Fix indentation weirdness in GPT-2 example.

parent 68a889ee
...@@ -107,7 +107,7 @@ def run_model(): ...@@ -107,7 +107,7 @@ def run_model():
print("=" * 40 + " SAMPLE " + str(generated) + " " + "=" * 40) print("=" * 40 + " SAMPLE " + str(generated) + " " + "=" * 40)
print(text) print(text)
print("=" * 80) print("=" * 80)
if args.unconditional: else:
generated = 0 generated = 0
for _ in range(args.nsamples // args.batch_size): for _ in range(args.nsamples // args.batch_size):
out = sample_sequence( out = sample_sequence(
...@@ -124,8 +124,6 @@ def run_model(): ...@@ -124,8 +124,6 @@ def run_model():
print("=" * 40 + " SAMPLE " + str(generated) + " " + "=" * 40) print("=" * 40 + " SAMPLE " + str(generated) + " " + "=" * 40)
print(text) print(text)
print("=" * 80) print("=" * 80)
if args.unconditional:
break
if __name__ == '__main__': if __name__ == '__main__':
run_model() run_model()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment