From b59cea84d8b34c1654306ac7876929a31a62aaa6 Mon Sep 17 00:00:00 2001 From: CodingWithTim Date: Mon, 30 Dec 2024 05:33:40 +0000 Subject: [PATCH] fix formatting --- fastchat/serve/gradio_block_arena_vision.py | 2 +- fastchat/serve/gradio_block_arena_vision_anony.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fastchat/serve/gradio_block_arena_vision.py b/fastchat/serve/gradio_block_arena_vision.py index 09139a2ec..6abc4aef9 100644 --- a/fastchat/serve/gradio_block_arena_vision.py +++ b/fastchat/serve/gradio_block_arena_vision.py @@ -240,7 +240,7 @@ def parse_pdf(file_path): result_type="markdown", verbose=True, ).load_data(file_path) - + assert len(document) > 0 output = document[0].text diff --git a/fastchat/serve/gradio_block_arena_vision_anony.py b/fastchat/serve/gradio_block_arena_vision_anony.py index 18361510b..28ec9d645 100644 --- a/fastchat/serve/gradio_block_arena_vision_anony.py +++ b/fastchat/serve/gradio_block_arena_vision_anony.py @@ -376,7 +376,7 @@ def add_text( text = text[:BLIND_MODE_INPUT_CHAR_LEN_LIMIT] # Hard cut-off post_processed_text = _prepare_text_with_pdf(text, pdfs) - + for i in range(num_sides): post_processed_text = _prepare_text_with_image( states[i], post_processed_text, images, csam_flag=csam_flag