{"id":41215247,"url":"https://github.com/rishabhsai/hackathon-grader","last_synced_at":"2026-01-23T00:00:05.245Z","repository":{"id":301124065,"uuid":"1008232722","full_name":"rishabhsai/Hackathon-Grader","owner":"rishabhsai","description":"A modern, AI-powered tool to automatically grade hackathon submissions (Markdown, text, or PDF) against a rubric using OpenAI's GPT-4o. Features a beautiful, dark-themed Streamlit web interface inspired by shadcn UI.","archived":false,"fork":false,"pushed_at":"2025-06-25T08:35:54.000Z","size":146,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-25T09:33:45.256Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rishabhsai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-25T08:24:14.000Z","updated_at":"2025-06-25T08:35:57.000Z","dependencies_parsed_at":"2025-06-25T09:35:32.054Z","dependency_job_id":"88c2ac60-cd10-4e9b-8f74-d93c267126e5","html_url":"https://github.com/rishabhsai/Hackathon-Grader","commit_stats":null,"previous_names":["rishabhsai/hackathon-grader"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rishabhsai/Hackathon-Grader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabhsai%2FHackathon-Grader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabhsai%2FHackathon-Grader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabhsai%2FHackathon-Grader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabhsai%2FHackathon-Grader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rishabhsai","download_url":"https://codeload.github.com/rishabhsai/Hackathon-Grader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabhsai%2FHackathon-Grader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28675336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T20:48:19.482Z","status":"ssl_error","status_checked_at":"2026-01-22T20:48:14.968Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-22T23:59:59.970Z","updated_at":"2026-01-23T00:00:05.238Z","avatar_url":"https://github.com/rishabhsai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Hackathon Grading Assistant\n\nA modern, AI-powered tool to automatically grade hackathon submissions (Markdown, text, or PDF) against a rubric using OpenAI's GPT-4o. Features a beautiful, dark-themed Streamlit web interface inspired by shadcn UI, and advanced AI-generated content detection.\n\n---\n\n## 🚀 Features\n- **Automatic Grading:** Uses GPT-4o to evaluate submissions based on your rubric.\n- **AI-Generated Content Detection:** Detects the probability that a submission is AI-generated using Sapling's AI Detector API.\n- **Sentence-Level AI Analysis:** View a breakdown of AI probability for each sentence in the submission.\n- **AI-Generated Text Highlighting:** Visual heatmap highlights portions of the text likely to be AI-generated.\n- **PDF, Markdown, and Text Support:** Upload `.pdf`, `.md`, or `.txt` files.\n- **Modern Web UI:** Elegant, animated, dark-themed interface.\n- **Command-Line Tool:** Grade submissions from your terminal.\n- **Granular Git History:** Each file is committed separately for easy tracking.\n\n---\n\n## 🛠️ Setup\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/rishabhsai/Hackathon-Grader.git\n   cd hackathon_grader\n   ```\n2. **Create a virtual environment:**\n   ```bash\n   python3 -m venv .venv\n   source .venv/bin/activate\n   ```\n3. **Install dependencies:**\n   ```bash\n   pip install -r requirements.txt\n   ```\n4. **Add your OpenAI API key:**\n   - Create a `.env` file in the project root (if not present).\n   - Add this line (replace with your key):\n     ```\n     OPENAI_API_KEY=\"sk-...\"\n     ```\n5. **(Optional) Add your Sapling API key for AI detection:**\n   - The default key is set in `app.py`, but you can replace it with your own for higher usage limits.\n\n---\n\n## 💻 Usage\n\n### 1. **Web App**\nRun the Streamlit app:\n```bash\n.venv/bin/streamlit run app.py\n```\n- Open the local URL (e.g., http://localhost:8501) in your browser.\n- Upload a `.pdf`, `.md`, or `.txt` file and click \"✨ Evaluate Submission\".\n- The AI will grade your submission and display detailed feedback.\n- **New:** See the AI-generated content probability, expand the \"AI Sentence Analysis \u0026 Highlighting\" section for a detailed breakdown and heatmap.\n\n### 2. **Command-Line Tool**\nGrade a submission from the terminal:\n```bash\n.venv/bin/python judge.py path/to/your_submission.md\n```\n- Replace with your file path. Output will be printed to the console.\n\n### 3. **Test Sapling API Key (CLI)**\nTest your Sapling API key directly:\n```bash\npython sapling_api_test.py\n```\n- Enter any text to see the raw Sapling AI Detector API response.\n\n---\n\n## 📄 Rubric \u0026 Prompt\n- **rubric.md:** Edit this file to define your judging criteria.\n- **prompt_template.txt:** Edit this to change the AI's instructions.\n\n---\n\n## 📝 Sample PDFs\n- See the `sample pdfs/` folder for example submissions you can test.\n\n---\n\n## 📢 Credits\n- Built with [Streamlit](https://streamlit.io/), [OpenAI](https://platform.openai.com/), [PyPDF2](https://pypdf2.readthedocs.io/), and [Sapling AI Detector](https://sapling.ai/ai-content-detector).\n- UI inspired by [shadcn/ui](https://ui.shadcn.com/).\n\n---\n\n## 🛡️ License\nMIT License. See `LICENSE` file for details. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishabhsai%2Fhackathon-grader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frishabhsai%2Fhackathon-grader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishabhsai%2Fhackathon-grader/lists"}