

class Search:
    def querySentence(process):
        request_query = process['request_query']
        file = process['file']
        type_file = process['type']
        number_of_pages = 0
        text = ""
        if type_file == "pdf":
            number_of_pages = ProcessFiles.getNumberOfPdfPages(file)
        elif type_file == "docx":
            text = ProcessFiles.readDocx(file)
            number_of_pages = 1
