Spaces:
Sleeping
Sleeping
A newer version of the Streamlit SDK is available:
1.51.0
metadata
title: AI Assignment Checker
emoji: π
colorFrom: purple
colorTo: pink
sdk: streamlit
sdk_version: 1.24.0
app_file: app.py
pinned: false
π Code Analyzer
A Streamlit-based application to analyze Python (.py) and Jupyter Notebook (.ipynb) files using CodeBERT and Pylint.
π Project Structure
app.py: Main Streamlit application.models/codebert.py: CodeBERT model loading and analysis logic.utils/code_utils.py: Pylint and Jupyter Notebook extraction utilities.static/uploads/: Folder for uploaded files.requirements.txt: Project dependencies.
βοΈ Setup Instructions
1. Clone or Set Up the Project
git clone https://github.com//.git cd code_analyzer
2. Install Dependencies
Ensure Python 3.8+ is installed, then run: pip install -r requirements.txt
3. Run the Application
streamlit run app.py Open the provided URL (usually http://localhost:8501) in your browser.
π Usage
1. Upload a .py or .ipynb file via the Streamlit UI.
2. View the analysis report with CodeBERT and Pylint feedback.
π Notes
1. Ensure the static/uploads folder exists (create it manually if needed).
2. If using a GPU, CodeBERT will utilize CUDA if available.
3.Check logs in the terminal for debugging information.
π οΈ Troubleshooting
1. Module Not Found β Verify all dependencies are installed:
pip install -r requirements.txt