Skip to content

Conversation

@inoray
Copy link
Collaborator

@inoray inoray commented Dec 11, 2025

Checklist:

  • Documentation has been updated, if necessary.
  • Examples have been added, if necessary.
  • Tests have been added, if necessary.

@inoray inoray linked an issue Dec 11, 2025 that may be closed by this pull request
@gemini-code-assist
Copy link

Summary of Changes

Hello @inoray, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on updating the configuration for the OCR service endpoint. The changes ensure that the application correctly connects to the designated OCR processing service by modifying the hardcoded endpoint URL in two relevant files.

Highlights

  • OCR Endpoint Update: The OCR service endpoint has been updated in two Python files to point to a new IP address and port.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@inoray inoray requested a review from mestanam-mnc December 11, 2025 08:14
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이 PR은 OCR 엔드포인트 URL을 변경합니다. 하드코딩된 URL을 변경하는 대신, 설정을 중앙에서 관리하는 것이 좋습니다. 두 파일에서 하드코딩된 OCR 엔드포인트 URL을 발견했습니다. 이를 settings.py와 같은 설정 파일로 옮겨서 환경별로 쉽게 구성할 수 있도록 하는 것을 권장합니다. 이렇게 하면 코드의 유지보수성이 향상되고 다른 환경으로의 배포가 용이해집니다.

initialize Document Converter
'''
self.ocr_endpoint = "http://192.168.73.170:30880/ocr"
self.ocr_endpoint = "http://192.168.81.170:48080/ocr"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

하드코딩된 OCR 엔드포인트 URL을 사용하고 있습니다. 이렇게 하면 개발, 테스트, 운영 등 여러 환경에 대한 구성을 관리하기 어렵습니다. 이 URL은 genon/preprocessor/src/common/settings.pySettings 클래스에 추가하고 거기서 불러오는 것이 좋습니다.

먼저 genon/preprocessor/src/common/settings.py 파일의 Settings 클래스에 OCR_ENDPOINT: str를 추가해야 합니다. 그런 다음 아래와 같이 코드를 수정할 수 있습니다. __import__를 사용하는 것은 한 줄로 제안하기 위한 방법이며, 실제로는 파일 상단에 from genon.preprocessor.src.common.settings import settings를 추가하는 것이 더 나은 방법입니다.

Suggested change
self.ocr_endpoint = "http://192.168.81.170:48080/ocr"
self.ocr_endpoint = __import__('genon.preprocessor.src.common.settings').settings.OCR_ENDPOINT

initialize Document Converter
'''
self.ocr_endpoint = "http://192.168.73.170:30880/ocr"
self.ocr_endpoint = "http://192.168.81.170:48080/ocr"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

하드코딩된 OCR 엔드포인트 URL을 사용하고 있습니다. 이렇게 하면 개발, 테스트, 운영 등 여러 환경에 대한 구성을 관리하기 어렵습니다. 이 URL은 genon/preprocessor/src/common/settings.pySettings 클래스에 추가하고 거기서 불러오는 것이 좋습니다.

먼저 genon/preprocessor/src/common/settings.py 파일의 Settings 클래스에 OCR_ENDPOINT: str를 추가해야 합니다. 그런 다음 아래와 같이 코드를 수정할 수 있습니다. __import__를 사용하는 것은 한 줄로 제안하기 위한 방법이며, 실제로는 파일 상단에 from genon.preprocessor.src.common.settings import settings를 추가하는 것이 더 나은 방법입니다.

Suggested change
self.ocr_endpoint = "http://192.168.81.170:48080/ocr"
self.ocr_endpoint = __import__('genon.preprocessor.src.common.settings').settings.OCR_ENDPOINT

@mestanam-mnc mestanam-mnc merged commit 4fe68d3 into develop Dec 12, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

genon 서버변경으로 인한 ocr endpoint 변경

3 participants