Skip to content

Commit 26f287c

Browse files
errors fixed
1 parent e346213 commit 26f287c

File tree

6 files changed

+31
-15
lines changed

6 files changed

+31
-15
lines changed

admin/src/components/Assignment/Assignment.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,4 @@ const Assignment = () => {
162162
);
163163
};
164164

165-
export default AppLayout(Assignment);
165+
export default AppLayout()(Assignment);

client/src/Student Dashboard/Notes/Notes.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const Notes = () => {
9494
});
9595

9696
if (response.data.success) {
97-
toast.success("Questions generated successfully");
97+
toast.success("Summary generated successfully");
9898
setSummary(response.data.summary);
9999
setShowSummary(true);
100100

@@ -123,11 +123,11 @@ const Notes = () => {
123123
<div className="mb-10 text-center">
124124
<h1 className="text-3xl font-extrabold text-gray-900 sm:text-4xl tracking-tight mb-3">
125125
<span className="bg-clip-text text-transparent bg-gradient-to-r from-blue-600 to-indigo-600">
126-
PDF to Questions: Smart Question Generator
126+
Topic Summarizer for Students
127127
</span>
128128
</h1>
129129
<p className="text-sm text-gray-600 max-w-2xl mx-auto">
130-
Quickly generate questions from your PDF notes with our AI-powered question generator.
130+
Quickly generate summaries from your PDF notes with our AI-powered summarizer.
131131

132132
</p>
133133
</div>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.hide-scrollbar {
2+
-ms-overflow-style: none; /* IE and Edge */
3+
scrollbar-width: none; /* Firefox */
4+
}
5+
.hide-scrollbar::-webkit-scrollbar {
6+
display: none; /* Chrome, Safari, Opera */
7+
}
8+

client/src/Student Dashboard/Sidebar/Sidebar.jsx

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ import AssignmentIcon from "@mui/icons-material/Assignment";
2727
import PaymentIcon from "@mui/icons-material/Payment";
2828
import Logo from "./Logo";
2929
import LocalLibraryIcon from "@mui/icons-material/LocalLibrary";
30+
import SummarizeIcon from '@mui/icons-material/Summarize';
31+
import DescriptionIcon from '@mui/icons-material/Description';
32+
import AssistantIcon from '@mui/icons-material/Assistant';
33+
import './Sidebar.css';
3034
// import Modal from "../components/Model";
3135
const Sidebar = () => {
3236
const location = useLocation();
@@ -45,9 +49,13 @@ const Sidebar = () => {
4549
<div className="flex max-md:hidden w-[20%] ">
4650
{/* Sidebar */}
4751
<div className="sidebar fixed top-0 left-0 h-screen flex flex-col w-[20%] bg-gradient-to-tr from-indigo-800 to-blue-700 text-white">
48-
<ul className="flex flex-col ml-10 gap-5">
52+
<div className="sticky top-0 z-20 w-[90%] ml-7 ">
4953
<Logo />
50-
<div className="flex gap-4">
54+
55+
</div>
56+
<ul className="flex flex-col ml-10 gap-5 overflow-y-auto hide-scrollbar">
57+
58+
<div className="flex gap-4 ">
5159
<li
5260
onClick={() => handleNavigation("/StudentDashboard/dashboard")}
5361
className={`list-style-none flex items-center gap-4 font-medium focus:bg-blue-400 p-3 w-[80%] cursor-pointer hover:text-gray-700 transition-all duration-75 ${
@@ -81,7 +89,7 @@ const Sidebar = () => {
8189
: "text-white"
8290
}`}
8391
>
84-
<CampaignIcon />
92+
<SummarizeIcon />
8593
Summarizer
8694
</li>
8795

@@ -93,10 +101,10 @@ const Sidebar = () => {
93101
: "text-white"
94102
}`}
95103
>
96-
<CampaignIcon />
104+
<DescriptionIcon />
97105
Teachers Notes
98106
</li>
99-
107+
{/*
100108
<li
101109
onClick={() => handleNavigation("/timetable")}
102110
className={`list-style-none flex gap-4 items-center font-medium focus:bg-blue-400 p-3 w-[80%] cursor-pointer ${
@@ -107,7 +115,7 @@ const Sidebar = () => {
107115
>
108116
<EventNoteIcon />
109117
Time Table
110-
</li>
118+
</li> */}
111119

112120
<li
113121
onClick={() => handleNavigation("/StudentDashboard/quiz")}
@@ -124,7 +132,7 @@ const Sidebar = () => {
124132
<li
125133
onClick={() => handleNavigation("/StudentDashboard/assignment")}
126134
className={`list-style-none flex items-center gap-4 font-medium focus:bg-blue-400 p-3 w-[80%] cursor-pointer ${
127-
isActive("/post-assignment")
135+
isActive("/StudentDashboard/assignment")
128136
? "bg-white text-black border rounded-md"
129137
: "text-white"
130138
}`}
@@ -163,7 +171,7 @@ const Sidebar = () => {
163171
: "text-white"
164172
}`}
165173
>
166-
<DashboardIcon />
174+
<AssistantIcon />
167175
AI Assistent
168176
</li>
169177

python_rec/pred_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def adjust_placement(row):
3131
return 0
3232

3333
df['Placed'] = df.apply(adjust_placement, axis=1)
34-
print(df['Placed'].value_counts())
3534
df=df[['Adjusted Marks','Adjusted Attendance','Branch','Placed']]
3635
X=df.drop('Placed',axis=1)
3736
Y=df['Placed']
@@ -60,4 +59,5 @@ def predictor(arr):
6059
prompt3 = sys.argv[3]
6160
prompt = [prompt1,prompt2,prompt3]
6261
output = predictor(prompt)
63-
print(json.dumps({"result": output}))
62+
print(json.dumps({"result": output}))
63+

server/controllers/paymentController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import FeesModel from "../models/feesModel.js";
55
import Stripe from "stripe";
66
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY)
77
export const payfees = async(req,res)=>{
8-
const frontend_url = "http://localhost:5173";
8+
const frontend_url = "http://localhost:5174";
99
try {
1010

1111
const {studentId,amount,rollno,email,year} = req.body

0 commit comments

Comments
 (0)