-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Deepgram #10
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @jquagga - I've reviewed your changes and found some issues that need to be addressed.
Blocking issues:
- Ensure the Deepgram API key is securely managed. (link)
Here's what I looked at during the review
- 🟡 General issues: 2 issues found
- 🔴 Security: 1 blocking issue
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Docstrings: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
@@ -21,7 +20,6 @@ def transcribe_call(destinations): | |||
if not jsonlist: | |||
print("Empty queue. Sleep 5 seconds and check again.") | |||
time.sleep(5) | |||
switch_model("normal") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (performance): Removal of model switching logic.
Confirm that the removal of dynamic model switching won't negatively impact performance or accuracy under varying loads.
Path.unlink(audiofile) | ||
# And now merge that dict into calljson so [text] in calljson is the transcript | ||
calljson = {**calljson, **calltext} | ||
return calljson |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (edge_case_not_handled): Implementation of Deepgram transcription service.
Review the error handling strategy for network or API failures to ensure robustness.
No description provided.