jwkirchenbauer commited on
Commit
c3f4b90
1 Parent(s): 00e72f2

`watermarking` was refactored to `watermark`

Browse files
Files changed (2) hide show
  1. demo_watermark.py +2 -2
  2. requirements.txt +1 -1
demo_watermark.py CHANGED
@@ -226,11 +226,11 @@ def generate_with_api(prompt, args):
226
  generation_params["temperature"] = args.sampling_temp
227
  generation_params["seed"] = args.generation_seed
228
 
229
- generation_params["watermarking"] = False
230
  output = client.generate(prompt, **generation_params)
231
  output_text_without_watermark = output.generated_text
232
 
233
- generation_params["watermarking"] = True
234
  output = client.generate(prompt, **generation_params)
235
  output_text_with_watermark = output.generated_text
236
 
 
226
  generation_params["temperature"] = args.sampling_temp
227
  generation_params["seed"] = args.generation_seed
228
 
229
+ generation_params["watermark"] = False
230
  output = client.generate(prompt, **generation_params)
231
  output_text_without_watermark = output.generated_text
232
 
233
+ generation_params["watermark"] = True
234
  output = client.generate(prompt, **generation_params)
235
  output_text_with_watermark = output.generated_text
236
 
requirements.txt CHANGED
@@ -6,4 +6,4 @@ torch
6
  transformers
7
  tokenizers
8
  accelerate
9
- text-generation==0.1.0
 
6
  transformers
7
  tokenizers
8
  accelerate
9
+ text-generation>=0.3.0