1) 实现了文本-公式混排识别; 2) 重构了项目结构
This commit is contained in:
@@ -56,7 +56,7 @@ class TexTellerServer:
|
||||
def predict(self, image_nparray) -> str:
|
||||
return inference(
|
||||
self.model, self.tokenizer, [image_nparray],
|
||||
inf_mode=self.inf_mode, num_beams=self.num_beams
|
||||
accelerator=self.inf_mode, num_beams=self.num_beams
|
||||
)[0]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user