Spaces:
Runtime error
Runtime error
Update app.py
Browse files88 unmodified lines8990919293949578 unmodified lines17417517617717817918088 unmodified linescv_text=''return cv_text, outputdef convert_to_json(llm, cv_text):prompt = """You are an expert at structuring resumes in JSON format. Given a modified resume text, extract the relevant details and convert them into the following structured JSON format:78 unmodified lines)cv_text, crafted_cv = craft_cv(llm, cv_text, job_description, maxtokens, temperature, top_probability)# cv_text, crafted_cv = craft_cv(llm, prompt, maxtokens, temperature, top_probability)crafted_cv = convert_to_json(llm, crafted_cv)return crafted_cvtemp_slider = gr.Slider(minimum=0, maximum=2, value=0.9, label="Temperature Value")88 unmodified lines8990919293949578 unmodified lines17417517617717817918088 unmodified linescv_text=''return cv_text, outputdef convert_to_json(llm, cv_text, maxtokens, temperature, top_probability):prompt = """You are an expert at structuring resumes in JSON format. Given a modified resume text, extract the relevant details and convert them into the following structured JSON format:78 unmodified lines)cv_text, crafted_cv = craft_cv(llm, cv_text, job_description, maxtokens, temperature, top_probability)# cv_text, crafted_cv = craft_cv(llm, prompt, maxtokens, temperature, top_probability)crafted_cv = convert_to_json(llm, crafted_cv, maxtokens, temperature, top_probability)return crafted_cvtemp_slider = gr.Slider(minimum=0, maximum=2, value=0.9, label="Temperature Value")
app.py+2-2