cyberandy commited on
Commit
69295e5
·
verified ·
1 Parent(s): a15c628

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -23,12 +23,11 @@ def initialize_model(hf_token):
23
  device_map="auto" # This will automatically handle GPU if available
24
  )
25
 
26
- # Configure watermarking
27
  WATERMARK_KEYS = [654, 400, 836, 123, 340, 443, 597, 160, 57, 789]
28
  watermarking_config = SynthIDTextWatermarkingConfig(
29
  keys=WATERMARK_KEYS,
30
- ngram_len=5,
31
- gamma=0.5,
32
  )
33
 
34
  return model, tokenizer, watermarking_config, "Model initialized successfully!"
 
23
  device_map="auto" # This will automatically handle GPU if available
24
  )
25
 
26
+ # Configure watermarking with only the supported parameters
27
  WATERMARK_KEYS = [654, 400, 836, 123, 340, 443, 597, 160, 57, 789]
28
  watermarking_config = SynthIDTextWatermarkingConfig(
29
  keys=WATERMARK_KEYS,
30
+ ngram_len=5
 
31
  )
32
 
33
  return model, tokenizer, watermarking_config, "Model initialized successfully!"