import gradio as gr import pickle vectorizer = pickle.load(open('cv','rb')) model_saved = pickle.load(open('job_prediction','rb')) def final_result(title,location,department,salary_range,company_profile,description,requirements,benefits,telecommuting,has_company_logo,has_questions,employment_type,required_experience,required_education,industry,function): text = title+location+department+company_profile+description+requirements+benefits+employment_type+required_experience+required_education+industry+function text=[text] text=vectorizer.transform(text) text=text.reshape(1, -1) return model_saved.predict(text) demo = gr.Interface(final_result,inputs=['text','text','text','text','text','text','text','text','text','text','text','text','text','text','text','text'],outputs='text',title="Fake Job Detection Model") demo.launch(share=True)