This repository contains the frontend and backend code for a Concept Evaluation System. The system allows users to upload a text file, answer questions related to the text content, and receive evaluations on their answers.
The frontend part of the application is built using HTML, JavaScript, and CSS. It includes the user interface for uploading files, displaying questions, answering questions through textboxes, and receiving evaluations.
index.html
: Main HTML file containing the UI structure.styles.css
: CSS file for styling the UI components.script.js
: JavaScript file handling user interactions, AJAX requests, and DOM manipulation.
- Clone or download this repository.
- Open
index.html
in a web browser to use the Concept Evaluation System.
The backend part of the application is built using Flask, a Python web framework. It handles file processing, question extraction, grading of answers, and communicates with the frontend through API endpoints.
app.py
: Main Flask application file containing backend logic.langchain_file.py
: Supporting Python file for language processing and evaluation.
- Ensure Python is installed on your machine.
- Install requirements using
pip install -r requirements.txt
- Run the Flask application by executing
python app.py
in the terminal.
/
: Serves the main HTML file and frontend interface./api/v1/extract_text
: Endpoint for extracting text from uploaded files and generating questions./api/v1/send_textbox_content
: Endpoint for receiving and grading user-provided answers.
Feel free to contribute by submitting bug fixes, feature enhancements, or additional functionality through pull requests.