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

Respect user-defined CUDA_VISIBLE_DEVICES in demos #178

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

XuehaiPan
Copy link

Respect user-defined CUDA_VISIBLE_DEVICES in demos if it is set.

@@ -34,7 +34,7 @@

def clear():
os.system('cls' if platform.system() == 'Windows' else 'clear')

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing spaces were trimmed by my editor. I can revert this if requested in the code review.

@@ -58,7 +58,7 @@ def load_model():


def generate_answer():

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, this file is indented with 3 spaces rather than 4.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is that? This is weird

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