Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -89,7 +89,6 @@ def get_course():
|
|
89 |
)
|
90 |
prompt = f""" prompt:
|
91 |
You need to act like as recommendation engine for course recommendation for a student. Below are current details.
|
92 |
-
Degree: {user_degree}
|
93 |
Stream: {user_stream}
|
94 |
Based on current details recommend the courses for higher degree.
|
95 |
Note: Output should be list in below format:
|
@@ -110,7 +109,6 @@ def get_mentor():
|
|
110 |
repetition_penalty = 1.0
|
111 |
|
112 |
content = request.json
|
113 |
-
# user_degree = content.get('degree') # Uncomment this line
|
114 |
user_stream = content.get('stream')
|
115 |
courses = content.get('courses')
|
116 |
|
@@ -143,7 +141,6 @@ def get_mentor():
|
|
143 |
|
144 |
prompt = f""" prompt:
|
145 |
You need to act like as recommendataion engine for mentor recommendation for student based on below details also the list of mentors with their experience is attached.
|
146 |
-
Degree: {user_degree}
|
147 |
Stream: {user_stream}
|
148 |
courses opted:{courses}
|
149 |
Mentor list= {mentors_data}
|
|
|
89 |
)
|
90 |
prompt = f""" prompt:
|
91 |
You need to act like as recommendation engine for course recommendation for a student. Below are current details.
|
|
|
92 |
Stream: {user_stream}
|
93 |
Based on current details recommend the courses for higher degree.
|
94 |
Note: Output should be list in below format:
|
|
|
109 |
repetition_penalty = 1.0
|
110 |
|
111 |
content = request.json
|
|
|
112 |
user_stream = content.get('stream')
|
113 |
courses = content.get('courses')
|
114 |
|
|
|
141 |
|
142 |
prompt = f""" prompt:
|
143 |
You need to act like as recommendataion engine for mentor recommendation for student based on below details also the list of mentors with their experience is attached.
|
|
|
144 |
Stream: {user_stream}
|
145 |
courses opted:{courses}
|
146 |
Mentor list= {mentors_data}
|