Spaces:
Runtime error
Runtime error
simonzhang5429
commited on
Commit
•
e2d0727
1
Parent(s):
905a9ab
Update app.py
Browse files
app.py
CHANGED
@@ -175,6 +175,7 @@ with gr.Blocks() as demo:
|
|
175 |
|
176 |
message = tokenizer.apply_chat_template(chat_data, tokenize=False)
|
177 |
message = message[3:] # remove SOT token
|
|
|
178 |
|
179 |
if len(message) > MAX_INPUT_LENGTH:
|
180 |
raise Exception()
|
|
|
175 |
|
176 |
message = tokenizer.apply_chat_template(chat_data, tokenize=False)
|
177 |
message = message[3:] # remove SOT token
|
178 |
+
print(message)
|
179 |
|
180 |
if len(message) > MAX_INPUT_LENGTH:
|
181 |
raise Exception()
|