sparkocr.eval_hunyuan#

Module Contents#

Functions#

clean_repeated_substrings(text)

Clean repeated substrings in text

Attributes#

device

generated_ids_trimmed

image_inputs

img_path

input_ids

inputs

messages

messages1

model

model_name_or_path

output_texts

processor

texts

clean_repeated_substrings(text)#

Clean repeated substrings in text

device#
generated_ids_trimmed#
image_inputs#
img_path = './cropped_3.png'#
input_ids#
inputs#
messages#
messages1#
model#
model_name_or_path = 'tencent/HunyuanOCR'#
output_texts#
processor#
texts#