Update main.py
Browse files120 unmodified lines121122123124125126127128129120 unmodified lines# f.write(file.file.read())# Return a response#return {"filename": file.filename, "message": "File uploaded successfully"}return file.filename## POST - /load_file# Load the file, split it into document chunks, and upload the document embeddings into a vectorstore120 unmodified lines121122123124125126127128129120 unmodified lines# f.write(file.file.read())# Return a response# return {"filename": file.filename, "message": "File uploaded successfully"}# return file.filenamereturn "hiiiiiiiiiiiiiiiiiiiiiiiiiii"## POST - /load_file# Load the file, split it into document chunks, and upload the document embeddings into a vectorstore
main.py+3-3