Update main.py
Browse files109 unmodified lines1101111121131141151161174 unmodified lines122123124125126127128109 unmodified lines# temp_file_path = temp_file.name # Get the path of the temporary file# return temp_file_path# Save the uploaded file to the temporary directoryfile_path = os.path.join(data_dir, file.filename)print(file_path)# Save the uploaded file to a temporary location# with open(file_path, "wb") as buffer:4 unmodified lines# Return a response#return {"filename": file.filename, "message": "File uploaded successfully"}return file_path## POST - /load_file109 unmodified lines1101111121131141151161174 unmodified lines122123124125126127128109 unmodified lines# temp_file_path = temp_file.name # Get the path of the temporary file# return temp_file_path# Save the uploaded file to the temporary directory#file_path = os.path.join(data_dir, file.filename)#print(file_path)# Save the uploaded file to a temporary location# with open(file_path, "wb") as buffer:4 unmodified lines# Return a response#return {"filename": file.filename, "message": "File uploaded successfully"}return file.filename## POST - /load_file
main.py+3-3