def resultsearch(): if request.method == 'POST': search_st = request.form.get('Name') print(search_st) result = search.res(search_st) # return result return render_template('result.html', results=result)
def resultsearch(): os.chdir(app.config['UPLOAD_JD_FOLDER']) file = glob.glob('*.xlsx', recursive=False) data_set = pd.read_excel(file[0]) search_st = data_set['High Level Job Description'][0] result = search.res(search_st) return render_template('result.html', results = result)
def searchResumeAction(): # print(searchresult.form) searchImportantKey = request.form['importantKey'] algorithm_type = request.form['algorithmType'] try: searchImportantKey = request.form['importantKey'] except: searchImportantKey = None searchOptionKey = request.form['optionKey'] if searchImportantKey: if "KNN" == algorithm_type: result = search.res(searchImportantKey, searchOptionKey) elif "cosinesim" == algorithm_type: result = search.ui_search(searchImportantKey) hasA = search.gethasA() hasB = search.gethasB() return render_template('searchResumePageResult.html', results=result, hasA=hasA, hasB=hasB) else: result = "No 'Mandatory Search Key' input" return render_template('searchResumePageResult.html', results=result)
def resultsearch(): #(app.config['UPLOAD_JD_FOLDER']) #file = glob.glob('*.xlsx', recursive=False) data_set = pd.read_excel('job_desc_document.xlsx') search_st = data_set['High Level Job Description'][0] result = search.res(search_st) # return result return render_template('result.html', results = result)
def resultsearch(): if request.method == 'POST': search_st = request.form.get('Name') print(search_st) return_flask_name = search.res(search_st) flask_return = return_flask_name[0] name_string = return_flask_name[1] linked_in = return_flask_name[2] major_list = zip(flask_return, name_string, linked_in) print(flask_return) return render_template('result.html', results=major_list)
def candidate_search(): code, msg = validators.has_params(request.json, [['search', 'candidates']]) if code == 400: return utils.make_response(code, msg) search_text = request.json['search'] candidates = request.json['candidates'] code, msg = validators.run_param_validators(search_text, candidates) if code == 400: return utils.make_response(code, msg) try: results = search.res(search_text, candidates) return utils.make_response(200, results) except Exception as e: return utils.make_response(500, str(e))