Tabrejmlkhan commited on
Commit
fa8dc09
1 Parent(s): 3dcd043

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -111,8 +111,8 @@ def create_course():
111
  @app.route('/match', methods=['POST'])
112
  def match_outcomes():
113
  """Matches course outcomes with predefined PLOs."""
114
- course_name = request.form['course']
115
- print(course_name)
116
  course_outcomes = request.form['course_outcomes'].split('\n')
117
  results = []
118
 
@@ -123,11 +123,11 @@ def match_outcomes():
123
  top_matches_indices = similarities.topk(3).indices.tolist()
124
  results.append({
125
  'course_outcome': co,
126
- 'course_name' : course_name,
127
  'best_matches': top_matches_indices
128
  })
129
 
130
- return render_template('result.html', course_name =course_name, results=results)
131
 
132
  if __name__ == '__main__':
133
  app.run(debug=True)
 
111
  @app.route('/match', methods=['POST'])
112
  def match_outcomes():
113
  """Matches course outcomes with predefined PLOs."""
114
+ program_outcomes = request.form['program_outcomes']
115
+ print(program_outcomes)
116
  course_outcomes = request.form['course_outcomes'].split('\n')
117
  results = []
118
 
 
123
  top_matches_indices = similarities.topk(3).indices.tolist()
124
  results.append({
125
  'course_outcome': co,
126
+ 'program_outcomes' : program_outcomes,
127
  'best_matches': top_matches_indices
128
  })
129
 
130
+ return render_template('result.html', results=results)
131
 
132
  if __name__ == '__main__':
133
  app.run(debug=True)