OmniParser icon indicating copy to clipboard operation
OmniParser copied to clipboard

fix: Redundant Imports for torch and PIL.Image in gradio_demo.py

Open yabi90 opened this issue 3 months ago • 0 comments

Description

This pull request eliminates redundant imports of torch and PIL.Image in the code. Currently, these libraries are imported multiple times in different places, leading to unnecessary duplication. This update consolidates these imports into a single block, which helps in:

  • Reducing redundancy
  • Maintaining cleaner, more organized code
  • Improving overall readability

Changes Made:

  • Consolidated all imports of torch and PIL.Image into a single import block.

Related Issue

Fixes #86

yabi90 avatar Nov 17 '24 23:11 yabi90