Spaces:
Runtime error
Runtime error
[update]edit main
Browse files
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_
|