Skip to content

Commit 273159c

Browse files
committed
Add logging for tesseract
1 parent 75d6b8b commit 273159c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

neurons/miner.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ class Miner(BaseMinerNeuron):
3939
def __init__(self, config=None):
4040
super(Miner, self).__init__(config=config)
4141

42-
bt.logging.info(f'Miner running tesseract: {pytesseract.get_tesseract_version()} and pytesseract version: {pytesseract.get_version()}')
42+
bt.logging.info(f'pytesseract version: {pytesseract.__version__}')
43+
bt.logging.info(f'tesseract version: {pytesseract.get_tesseract_version()}')
4344

4445

4546

@@ -50,7 +51,7 @@ async def forward(
5051
Processes the incoming OCR synapse and attaches the response to the synapse.
5152
5253
Args:
53-
synapse (ocr_subnet.protocol.OCRSynapse): The synapse object containing the image data.
54+
synapse (ocr_subnet.protocol.OCRSynapse): The synapse object containing the image data.
5455
5556
Returns:
5657
ocr_subnet.protocol.OCRSynapse: The synapse object with the 'response' field set to the extracted data.

0 commit comments

Comments
 (0)