Skip to content

Commit 7bdea2a

Browse files
Updated Final Codes
Updated Final Codes
2 parents feec9f9 + 9de9dd2 commit 7bdea2a

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

UserService/src/controllers/recordController.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const recordModel = require("../models/recordModel")
22
const {publishErrorEvent} = require('../../config/eventBroker')
33
const HTTPStatus = require('../enums/httpStatus');
44

5+
// lesson controller
56
exports.saveRecord = async (payload) => {
67
try {
78
// Validate payload

UserService/src/models/lessonsModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
const mongoose = require("mongoose");
66

7-
// Schema for dyslexic lessons
7+
// Schema for dyslexic lesson
88
const dyslexicLessonsSchema = new mongoose.Schema(
99
{
1010

UserService/src/routes/lessonsRoutes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @description - Route file responsible for the learner processes
2+
* @description - Route file responsible for the dyslexia learner processes
33
*/
44

55
//Requires

flaskAIservices/src/controllers/SentenceGenController.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import queue
55
import logging
66

7-
# Initialize request queue and lock
7+
# Initialize request queue and lock for resource handling
88
request_queue = queue.Queue(maxsize=10) # Limit concurrent requests
99
model_lock = Lock() # Ensure model access is thread-safe
1010
logger = logging.getLogger(__name__)

flaskAIservices/src/modelController/SentenceGenModel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def generate_meaningful_sentences(prompt, target_word_count=3, num_sentences=10,
100100
Returns:
101101
list: A list of generated meaningful sentences with the specified word count.
102102
"""
103-
# Load the T5 model for sentence generation
103+
# Load the T5 model for sentences generation
104104
print("Loading T5 model for sentence generation...")
105105
model_name = "google/flan-t5-small"
106106
tokenizer = AutoTokenizer.from_pretrained(model_name)

0 commit comments

Comments
 (0)