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

Have an __del__ for the interface object #18

Closed
abidlabs opened this issue Jul 2, 2020 · 1 comment
Closed

Have an __del__ for the interface object #18

abidlabs opened this issue Jul 2, 2020 · 1 comment
Assignees

Comments

@abidlabs
Copy link
Member

abidlabs commented Jul 2, 2020

Right now, every time that a Gradio interface object is launched, a new port is used. E.g. starts from 7860, then goes to 7861, 7862, etc. This is because each interface object keeps its port open, which is wasteful.

Close the port when the interface object is deleted, or is overwritten, so that ports are closed and can be reused

@abidlabs
Copy link
Member Author

Replaced with gradio.reset_all() function

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

No branches or pull requests

2 participants