jwkirchenbauer commited on
Commit
99fe45a
·
1 Parent(s): 3154491

remove teaser input

Browse files
Files changed (1) hide show
  1. demo_watermark.py +22 -25
demo_watermark.py CHANGED
@@ -518,31 +518,28 @@ def main(args):
518
 
519
  # Generate and detect, report to stdout
520
  if not args.skip_model_load:
521
- # input_text = (
522
- # "The diamondback terrapin or simply terrapin (Malaclemys terrapin) is a "
523
- # "species of turtle native to the brackish coastal tidal marshes of the "
524
- # "Northeastern and southern United States, and in Bermuda.[6] It belongs "
525
- # "to the monotypic genus Malaclemys. It has one of the largest ranges of "
526
- # "all turtles in North America, stretching as far south as the Florida Keys "
527
- # "and as far north as Cape Cod.[7] The name 'terrapin' is derived from the "
528
- # "Algonquian word torope.[8] It applies to Malaclemys terrapin in both "
529
- # "British English and American English. The name originally was used by "
530
- # "early European settlers in North America to describe these brackish-water "
531
- # "turtles that inhabited neither freshwater habitats nor the sea. It retains "
532
- # "this primary meaning in American English.[8] In British English, however, "
533
- # "other semi-aquatic turtle species, such as the red-eared slider, might "
534
- # "also be called terrapins. The common name refers to the diamond pattern "
535
- # "on top of its shell (carapace), but the overall pattern and coloration "
536
- # "vary greatly. The shell is usually wider at the back than in the front, "
537
- # "and from above it appears wedge-shaped. The shell coloring can vary "
538
- # "from brown to grey, and its body color can be grey, brown, yellow, "
539
- # "or white. All have a unique pattern of wiggly, black markings or spots "
540
- # "on their body and head. The diamondback terrapin has large webbed "
541
- # "feet.[9] The species is"
542
- # )
543
-
544
- 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"
545
-
546
 
547
  term_width = 80
548
  print("#"*term_width)
 
518
 
519
  # Generate and detect, report to stdout
520
  if not args.skip_model_load:
521
+ input_text = (
522
+ "The diamondback terrapin or simply terrapin (Malaclemys terrapin) is a "
523
+ "species of turtle native to the brackish coastal tidal marshes of the "
524
+ "Northeastern and southern United States, and in Bermuda.[6] It belongs "
525
+ "to the monotypic genus Malaclemys. It has one of the largest ranges of "
526
+ "all turtles in North America, stretching as far south as the Florida Keys "
527
+ "and as far north as Cape Cod.[7] The name 'terrapin' is derived from the "
528
+ "Algonquian word torope.[8] It applies to Malaclemys terrapin in both "
529
+ "British English and American English. The name originally was used by "
530
+ "early European settlers in North America to describe these brackish-water "
531
+ "turtles that inhabited neither freshwater habitats nor the sea. It retains "
532
+ "this primary meaning in American English.[8] In British English, however, "
533
+ "other semi-aquatic turtle species, such as the red-eared slider, might "
534
+ "also be called terrapins. The common name refers to the diamond pattern "
535
+ "on top of its shell (carapace), but the overall pattern and coloration "
536
+ "vary greatly. The shell is usually wider at the back than in the front, "
537
+ "and from above it appears wedge-shaped. The shell coloring can vary "
538
+ "from brown to grey, and its body color can be grey, brown, yellow, "
539
+ "or white. All have a unique pattern of wiggly, black markings or spots "
540
+ "on their body and head. The diamondback terrapin has large webbed "
541
+ "feet.[9] The species is"
542
+ )
 
 
 
543
 
544
  term_width = 80
545
  print("#"*term_width)