OmniParser
OmniParser copied to clipboard
fix: Redundant Imports for torch and PIL.Image in gradio_demo.py
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
andPIL.Image
into a single import block.
Related Issue
Fixes #86