Skip to content

Commit 7a7d92b

Browse files
committed
add prints to /ingest route
1 parent 1124b7d commit 7a7d92b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ai_ta_backend/main.py

+2
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ def ingest() -> Response:
209209
"""
210210
s3_paths: List[str] | str = request.args.get('s3_paths', default='')
211211
course_name: List[str] | str = request.args.get('course_name', default='')
212+
print(f"In top of /ingest route. course: {course_name}, s3paths: {s3_paths}")
212213

213214
if course_name == '' or s3_paths == '':
214215
# proper web error "400 Bad request"
@@ -220,6 +221,7 @@ def ingest() -> Response:
220221

221222
ingester = Ingest()
222223
success_fail_dict = ingester.bulk_ingest(s3_paths, course_name)
224+
print(f"In /ingest route. success or fail dict: {success_fail_dict}")
223225
del ingester
224226

225227
response = jsonify(success_fail_dict)

0 commit comments

Comments
 (0)