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: allow progress bar to be disabled #5064

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

mgordon-arize
Copy link
Contributor

Add new parameter to llm_classify to allow progress bar format to be customizable and to be disabled

This was because the logs were noisy and verbose does not disable the progress bar

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Oct 17, 2024
Copy link
Contributor

github-actions bot commented Oct 17, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@RogerHYang
Copy link
Contributor

sorry the CI is not working right now. we're still trying to fix it

@RogerHYang RogerHYang changed the title allow progress bar to be disabled fix: allow progress bar to be disabled Oct 17, 2024
@RogerHYang
Copy link
Contributor

Ok. Please try merge main to update CI. Thanks

@axiomofjoy
Copy link
Contributor

@mgordon-arize Can you sign the CLA?

Comment on lines 228 to 231
if self.tqdm_bar_format is None:
progress_bar = tqdm(total=len(inputs), bar_format=self.tqdm_bar_format, disable=True)
else:
progress_bar = tqdm(total=len(inputs), bar_format=self.tqdm_bar_format)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit (same for the other location)

Suggested change
if self.tqdm_bar_format is None:
progress_bar = tqdm(total=len(inputs), bar_format=self.tqdm_bar_format, disable=True)
else:
progress_bar = tqdm(total=len(inputs), bar_format=self.tqdm_bar_format)
progress_bar = tqdm(
total=len(inputs),
bar_format=self.tqdm_bar_format,
disable=self.tqdm_bar_format is None,
)

@mgordon-arize
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Oct 18, 2024
@mikeldking mikeldking merged commit 07d9856 into Arize-ai:main Oct 18, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S This PR changes 10-29 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants