Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingWithTim committed Dec 30, 2024
1 parent 8da825b commit b59cea8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fastchat/serve/gradio_block_arena_vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion fastchat/serve/gradio_block_arena_vision_anony.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b59cea8

Please sign in to comment.