CoolFace
Apppublic

samee69/ai-agent_wikipedia

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
1likes
app.py40 linesDownload Raw Back to root
1 2import streamlit as st3from langchain_google_genai import ChatGoogleGenerativeAI4llm = ChatGoogleGenerativeAI(model="gemini-pro", temperature=0.5, google_api_key="AIzaSyCUt7B3eNgc11fwbE6N-Rg4ebwSAhEaWkE")5template_sting="""6 7Extract the following key information from the given resume text.8Evaluate if they are a good candidate for the following job:9 10Job Title: Web Developer11 12Job Description:13 14Seeking a skilled Web Developer to design, develop, and maintain dynamic websites and web applications.15Must be proficient in HTML, CSS, JavaScript, and modern frameworks like React or Angular. Responsibilities16include coding, debugging, and collaborating with design and backend teams to deliver high-quality web solutions.17Strong problem-solving skills and experience with responsive design required. Knowledge of version control (Git)18and RESTful APIs preferred. Join us to create innovative digital experiences!19 201. Name212. University Name223. Job Titles234. Total Work expereince245. Skils256. Good candidate (True/False)26 27Resume Text:28{resume}29 30Please format the extracted information in a very short summarized structured JSON format with clear labels for each section."""31from langchain.prompts import ChatPromptTemplate32 33prompt_template = ChatPromptTemplate.from_template(template_sting)34from langchain_core.output_parsers import JsonOutputParser35chain = prompt_template | llm | JsonOutputParser()36 37st.title("Hello")38 39 40