Skip to content

Commit cc66890

Browse files
committed
These changes are in response to PR comments
1 parent 06d056b commit cc66890

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fastchat/serve/gradio_block_arena_vision_anony.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,8 @@ def add_text(
423423
+ [""]
424424
)
425425

426-
text = text[:BLIND_MODE_INPUT_CHAR_LEN_LIMIT] # Hard cut-off
426+
if file_extension != ".pdf":
427+
text = text[:BLIND_MODE_INPUT_CHAR_LEN_LIMIT] # Hard cut-off
427428
for i in range(num_sides):
428429
post_processed_text = _prepare_text_with_image(
429430
states[i], text, images, csam_flag=csam_flag

0 commit comments

Comments
 (0)