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

Update app.py #43

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

Update app.py #43

wants to merge 1 commit into from

Conversation

Yash-2707
Copy link

Organized imports and constants at the top.
Created a load_model function for better modularity. Simplified the infer function by removing redundant code. Moved the Gradio interface creation into a separate function for better organization. Added error handling for CUDA availability.
Improved variable naming for clarity.
Removed commented-out code and unused variables.
Added a main block to ensure the interface only launches when the script is run directly.

Organized imports and constants at the top.
Created a load_model function for better modularity.
Simplified the infer function by removing redundant code.
Moved the Gradio interface creation into a separate function for better organization.
Added error handling for CUDA availability.
Improved variable naming for clarity.
Removed commented-out code and unused variables.
Added a main block to ensure the interface only launches when the script is run directly.
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.

1 participant