Swapnil-101 commited on
Commit
aaf4465
·
verified ·
1 Parent(s): d6b9f91

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +15 -6
main.py CHANGED
@@ -161,7 +161,6 @@ def get_streams():
161
  top_p = 0.95
162
  repetition_penalty = 1.0
163
 
164
-
165
  generate_kwargs = dict(
166
  temperature=temperature,
167
  max_new_tokens=max_new_tokens,
@@ -171,11 +170,20 @@ def get_streams():
171
  seed=42,
172
  )
173
  prompt = f""" prompt:
174
- You need to act like as recommendation engine.
175
- List all 40+ streams/branches in like computer science, chemical engineering, aerospace , etc
176
- Note: Output should be list in below format:
177
- [branch1, branch2, branch3,...]
178
- Return only answer not prompt and unnecessary stuff, also dont add any special characters or punctuation marks
 
 
 
 
 
 
 
 
 
179
  """
180
  formatted_prompt = format_prompt(prompt)
181
 
@@ -184,6 +192,7 @@ def get_streams():
184
 
185
 
186
 
 
187
  @app.route('/get_education_profiles', methods=['GET'])
188
  def get_education_profiles():
189
  temperature = 0.9
 
161
  top_p = 0.95
162
  repetition_penalty = 1.0
163
 
 
164
  generate_kwargs = dict(
165
  temperature=temperature,
166
  max_new_tokens=max_new_tokens,
 
170
  seed=42,
171
  )
172
  prompt = f""" prompt:
173
+ You need to act like as a recommendation engine.
174
+ List all 40+ streams/branches along with brief descriptions in fields like computer science, chemical engineering, aerospace, etc.
175
+ Note: Output should be in the following format:
176
+ [{
177
+ "branch": "Computer Science",
178
+ "description": "Computer science is the study of computers and computational systems...",
179
+ },
180
+ {
181
+ "branch": "Chemical Engineering",
182
+ "description": "Chemical engineering is a branch of engineering that uses principles of chemistry...",
183
+ },
184
+ ...
185
+ ]
186
+ Return only the answer without the prompt and unnecessary stuff, and don't add any special characters or punctuation marks.
187
  """
188
  formatted_prompt = format_prompt(prompt)
189
 
 
192
 
193
 
194
 
195
+
196
  @app.route('/get_education_profiles', methods=['GET'])
197
  def get_education_profiles():
198
  temperature = 0.9