Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

debug_cox #11

Merged
merged 6 commits into from
Dec 14, 2023
Merged

debug_cox #11

merged 6 commits into from
Dec 14, 2023

Conversation

jordantcox
Copy link
Collaborator

Added several error handlers to manage:

  1. OPENAI_API_KEY which was referred to by multiple names.
  2. Added an error flag in case users had not run 'retrieve_docs.py'.

Cox, Jordan added 6 commits December 6, 2023 14:04
Fixed an error that results from multiple names for the environmental variable "AZURE_OPENAI_KEY".
If no pdfs to concatenate, throw error for user to run retrieve_docs.py.
Added nice formatting for throwing error.
Updated Error message for test compliance.
Updated run_app to pass error tests.
try:
corpus = get_corpus()
except Exception:
print("Error: Have you run 'retrieve_docs.py'?")
Copy link
Member

Choose a reason for hiding this comment

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

@jordantcox alternatives to print() would be raising a custom exception but because this is streamlit weirdness i think this makes sense 👍

@grantbuster grantbuster merged commit 323066e into main Dec 14, 2023
6 checks passed
@grantbuster grantbuster deleted the debug_cox branch December 14, 2023 17:50
github-actions bot pushed a commit that referenced this pull request Dec 14, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants