Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -167,11 +167,6 @@ def get_streams():
|
|
167 |
repetition_penalty = 1.0
|
168 |
|
169 |
|
170 |
-
content = request.json
|
171 |
-
user_degree = content.get('degree')
|
172 |
-
user_stream = content.get('stream')
|
173 |
-
#user_semester = content.get('semester')
|
174 |
-
|
175 |
generate_kwargs = dict(
|
176 |
temperature=temperature,
|
177 |
max_new_tokens=max_new_tokens,
|
@@ -182,10 +177,9 @@ def get_streams():
|
|
182 |
)
|
183 |
prompt = f""" prompt:
|
184 |
You need to act like as recommendation engine.
|
185 |
-
List all 40+ streams/branches in
|
186 |
-
Degree: {user_degree}
|
187 |
Note: Output should be list in below format:
|
188 |
-
[
|
189 |
Return only answer not prompt and unnecessary stuff, also dont add any special characters or punctuation marks
|
190 |
"""
|
191 |
formatted_prompt = format_prompt(prompt)
|
|
|
167 |
repetition_penalty = 1.0
|
168 |
|
169 |
|
|
|
|
|
|
|
|
|
|
|
170 |
generate_kwargs = dict(
|
171 |
temperature=temperature,
|
172 |
max_new_tokens=max_new_tokens,
|
|
|
177 |
)
|
178 |
prompt = f""" prompt:
|
179 |
You need to act like as recommendation engine.
|
180 |
+
List all 40+ streams/branches in like computer science, chemical engineering, aerospace , etc
|
|
|
181 |
Note: Output should be list in below format:
|
182 |
+
[branch1, branch2, branch3,...]
|
183 |
Return only answer not prompt and unnecessary stuff, also dont add any special characters or punctuation marks
|
184 |
"""
|
185 |
formatted_prompt = format_prompt(prompt)
|