jwkirchenbauer commited on
Commit
e8fd608
1 Parent(s): d6b2709

rm terminal width command

Browse files
Files changed (1) hide show
  1. demo_watermark.py +1 -1
demo_watermark.py CHANGED
@@ -269,7 +269,7 @@ def main(args):
269
  input_text = "In this work, we study watermarking of language model output. A watermark is a hidden pattern in text that is imperceptible to humans, while making the text algorithmically identifiable as synthetic. We propose an efficient watermark that makes synthetic text detectable from short spans of tokens (as few as 25 words), while false-positives (where human text is marked as machine-generated) are statistically improbable. The watermark detection algorithm can be made public, enabling third parties (e.g., social media platforms) to run it themselves, or it can be kept private and run behind an API. We seek a watermark with the following properties:\n"
270
 
271
 
272
- term_width = os.get_terminal_size()[0]
273
  print("#"*term_width)
274
  print("Prompt:")
275
  print(input_text)
 
269
  input_text = "In this work, we study watermarking of language model output. A watermark is a hidden pattern in text that is imperceptible to humans, while making the text algorithmically identifiable as synthetic. We propose an efficient watermark that makes synthetic text detectable from short spans of tokens (as few as 25 words), while false-positives (where human text is marked as machine-generated) are statistically improbable. The watermark detection algorithm can be made public, enabling third parties (e.g., social media platforms) to run it themselves, or it can be kept private and run behind an API. We seek a watermark with the following properties:\n"
270
 
271
 
272
+ term_width = 80
273
  print("#"*term_width)
274
  print("Prompt:")
275
  print(input_text)