Spaces:
Sleeping
Sleeping
Tabrejmlkhan
commited on
Commit
•
fa8dc09
1
Parent(s):
3dcd043
Update app.py
Browse files
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 |
-
|
115 |
-
print(
|
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 |
-
'
|
127 |
'best_matches': top_matches_indices
|
128 |
})
|
129 |
|
130 |
-
return render_template('result.html',
|
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)
|