Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yabi90
Copy link

@yabi90 yabi90 commented Nov 17, 2024

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

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.

Issue: Redundant Imports for torch and PIL.Image in gradio_demo.py
1 participant