qgyd2021 commited on
Commit
5923667
1 Parent(s): 92dd16e

[update]edit main

Browse files
Files changed (1) hide show
  1. main.py +0 -2
main.py CHANGED
@@ -127,8 +127,6 @@ def main():
127
 
128
  output = ""
129
  for output_ in streamer:
130
- output_ = output_.tolist()[0][len(input_ids[0]):]
131
- output_ = tokenizer.decode(output_)
132
  output_ = output_.strip().replace(tokenizer.eos_token, "").strip()
133
 
134
  output += output_
 
127
 
128
  output = ""
129
  for output_ in streamer:
 
 
130
  output_ = output_.strip().replace(tokenizer.eos_token, "").strip()
131
 
132
  output += output_