https://github.com/ashr-exe/daedalus-server
The Daedalus Answer Rating System is a fun and interactive web application that uses AI to rate how close your answer is to the correct one. Powered by SpaCy and Groq, this system gives you a score from 0 to 100, helping you see just how well your answer matches!
https://github.com/ashr-exe/daedalus-server
api flask nlp quiz
Last synced: 5 months ago
JSON representation
The Daedalus Answer Rating System is a fun and interactive web application that uses AI to rate how close your answer is to the correct one. Powered by SpaCy and Groq, this system gives you a score from 0 to 100, helping you see just how well your answer matches!
- Host: GitHub
- URL: https://github.com/ashr-exe/daedalus-server
- Owner: ashr-exe
- Created: 2025-01-13T18:27:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-31T15:23:12.000Z (over 1 year ago)
- Last Synced: 2025-06-17T16:48:48.068Z (about 1 year ago)
- Topics: api, flask, nlp, quiz
- Language: Python
- Homepage: https://daedalus-server.onrender.com/
- Size: 88.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**๐ Welcome to the Answer Rating System! ๐**
Ever wondered how close your answer is to being spot-on? With our Answer Rating System, you'll get a rating between 0 and 100 to see just how well you did. Weโve got some AI magic happening here with SpaCy and Groq models working together to give you the most accurate score possible!
---
**โจ Features Thatโll Amaze You:**
- **Backend Awesomeness:**
- Built with Flask โ lightweight, but oh so powerful!
- SpaCy is our secret sauce for understanding text.
- Groq steps in with advanced AI for rating answers like a pro.
- Two cool endpoints:
- `/api/spacy-rate`: SpaCy rates your answers.
- `/api/groq-rate`: Groq takes a shot at rating too.
- **Frontend Simplicity:**
- A clean, responsive design with HTML, CSS, and JavaScript.
- Input your answer, hit submit, and boom โ your ratings from both models appear!
- Easy to use and visually pleasing, just the way you like it.
---
**๐ Letโs Get You Started:**
**What Youโll Need:**
- Python 3.11+ (because we like the new stuff!)
- Node.js (if you fancy tinkering with the frontend)
- Flask, Flask-CORS, SpaCy, Gunicorn (backend superpowers)
**Backend Setup (Magic Happens Here):**
1. Clone this repo and dive in:
```bash
git clone https://github.com/your-username/your-repo.git
cd your-repo
```
2. Set up a virtual playground:
```bash
python -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
```
3. Install all the goodies:
```bash
pip install -r requirements.txt
```
4. Fire up the server:
```bash
flask run
```
5. Going live? Use Gunicorn:
```bash
gunicorn app:app
```
**Frontend Setup (Letโs Go Visual):**
1. Open `index.html` in your favorite browser.
2. Play around and see the magic happen!
3. Want to share? Deploy it on GitHub Pages, Netlify, or Vercel.
---
**๐ฎ Endpoints โ Where the Magic Lives:**
- `POST /api/spacy-rate`: Let SpaCy rate your answers.
- **Send this:**
```json
{
"userAnswer": "Your answer here",
"correctAnswer": "Correct answer here"
}
```
- `POST /api/groq-rate`: Groq will also give it a try.
- **Send this:**
```json
{
"userAnswer": "Your answer here",
"correctAnswer": "Correct answer here"
}
```
---
**๐ CORS Configuration โ No Blockages Here!**
Weโve enabled CORS to keep things smooth between the frontend and backend. Only specific origins get through โ tight security, no worries!
---
**๐ก Deployment**
Check out the live version here: [Daedalus Server](https://daedalus-server.onrender.com/). Host your frontend on your favorite static hosting service.
---
**๐ License**
Feel free to fork and star โ itโs all under the MIT License. See the `LICENSE` file for details.
---
**๐ก Acknowledgments**
Big shoutout to Flask, SpaCy, and Groq for powering this project. Your tools make the magic happen!
---