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 getDevices.py #81

Closed
wants to merge 5 commits into from
Closed

Conversation

mst-rajatmishra
Copy link

i have tried to make some improvment,
Setting the Path: Instead of hardcoding the path to your deepFaceLabFolder, this version lets you set it using an environment variable. If the environment variable isn’t set, it defaults to a placeholder path. Just replace '/path/to/deepFaceLabFolder' with the actual path you’re using or set the DEEPLFACELAB_FOLDER environment variable.
Handling Errors:

I’ve added a bit of error handling to catch any problems that might occur when trying to get the list of devices. This way, if something goes wrong, you’ll get a helpful error message.
Improving JSON Output:

The JSON output is now formatted to be more readable. The indent=2 parameter in json.dumps makes it easier to see the structure of the data.

@Lenny4 Lenny4 changed the base branch from main to dev September 16, 2024 23:56
@Lenny4
Copy link
Owner

Lenny4 commented Sep 17, 2024

Make DeepFaceLabClient crash

@Lenny4 Lenny4 closed this Sep 17, 2024
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.

2 participants