tingxinli commited on
Commit
f5810b5
1 Parent(s): 05c0902

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -93,12 +93,12 @@ HaS-820m").to('cuda:0')
93
 
94
  original_input = "华纳兄弟影业(Warner Bro)著名的作品有《蝙蝠侠》系列、《超人》系列、《黑客帝国》系列和《指环王》系列。目前华纳未考虑推出《蝙蝠侠》系列新作。"
95
  print('original input:', original_input)
96
- hide_input = hide_encrypt(original_input, model, tokenizer)
97
  print('hide input:', hide_input)
98
  prompt = "Translate the following text into English.\n %s\n" % hide_input
99
  hide_output = get_gpt_output(prompt)
100
  print('hide output:', hide_output)
101
- original_output = seek_decrypt(hide_input, hide_output, original_input, model, tokenizer)
102
  print('original output:', original_output)
103
 
104
  # output:
 
93
 
94
  original_input = "华纳兄弟影业(Warner Bro)著名的作品有《蝙蝠侠》系列、《超人》系列、《黑客帝国》系列和《指环王》系列。目前华纳未考虑推出《蝙蝠侠》系列新作。"
95
  print('original input:', original_input)
96
+ hide_input = hide(original_input, model, tokenizer)
97
  print('hide input:', hide_input)
98
  prompt = "Translate the following text into English.\n %s\n" % hide_input
99
  hide_output = get_gpt_output(prompt)
100
  print('hide output:', hide_output)
101
+ original_output = seek(hide_input, hide_output, original_input, model, tokenizer)
102
  print('original output:', original_output)
103
 
104
  # output: