Swapnil-101 commited on
Commit
3cb0f1d
·
verified ·
1 Parent(s): c26acbb

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -8
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 below degree
186
- Degree: {user_degree}
187
  Note: Output should be list in below format:
188
- [course1, course2, course3,...]
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)