An open API service indexing awesome lists of open source software.

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!

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!

---