Closed ajitesh123 closed 4 months ago
[!IMPORTANT]
Review skipped
Draft detected.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This pull request adds the ability for users to provide audio input for their performance reviews and self-reviews. Previously, users had to type their input, but now they can record their audio. The audio is converted from speech to text using the Whisper model on the Groq library, and the resulting text is used as input to the review generation process.
Main Changes
streamlit-audio-record
library to the project, which allows users to record audio input within the Streamlit application.convert_speech_to_text
function using the Whisper model in the Groq library to convert the recorded audio to text.ReviewRequest
andSelfReviewRequest
models to include an optionalaudio_review
field, and updated thegenerate_prompt
andgenerate_review
functions to use this field if it is provided.app.py
andapp_fastapi.py
files to handle the audio input, convert it to text, and pass it to the review generation process.Impact
With these changes, users can now provide audio input for their performance reviews and self-reviews, which can make the process more convenient and natural for them. The audio input is automatically converted to text and used in the review generation process, ensuring a seamless experience for the users.