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

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -14
main.py CHANGED
@@ -161,6 +161,7 @@ def get_streams():
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,20 +171,11 @@ def get_streams():
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
 
 
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
  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