The Agentic Code Review Analyst is a web application that automates the process of reviewing Python code. Leveraging OpenAI's GPT-3.5-turbo model in conjunction with LangChain, this tool provides a detailed, line-by-line analysis and suggestions to help developers improve code quality and maintainability.
The project is built with the following technologies:
import streamlit as st import openai def review_code(file): code = file.read().decode("utf-8") # Generate code review using OpenAI's GPT-3.5-turbo response = openai.ChatCompletion.create( model="gpt-3.5-turbo", messages=[ {"role": "system", "content": "You are a code review assistant."}, {"role": "user", "content": f"Please review the following code:\n\n{code}"} ] ) return response.choices[0].message.content uploaded_file = st.file_uploader("Upload your Python file", type="py") if uploaded_file is not None: review = review_code(uploaded_file) st.text_area("Code Review", review)
There are no datasets linked
There are no datasets linked