Spaces:
Sleeping
Sleeping
import streamlit as st | |
import google.generativeai as genai | |
import os | |
from dotenv import load_dotenv | |
load_dotenv() | |
genai.configure(api_key=os.getenv("GOOGLE_API_KEY")) | |
#gemini function | |
def get_gemini_response(input): | |
model=genai.GenerativeModel('gemini-pro') | |
response = model.generate_content(input) | |
return response.text | |
input_prompt =""" | |
### You are an skilled AI-driven LinkedIn profile optimization assistant, your primary goal is to enhance the functionality and usefulness of the application. Consider incorporating the following features to provide a comprehensive solution for users: | |
1. Profile Completeness Analysis: Assess the completeness of users' LinkedIn profiles and offer suggestions to fill any missing information or sections. | |
2. Keyword Optimization: Analyze users' profiles to identify relevant keywords and optimize their content for improved visibility in LinkedIn search results. | |
3 Content Recommendations: Provide personalized suggestions for adding or enhancing content on users' profiles, such as updating the summary section or highlighting key skills and achievements. | |
4. Visual Enhancement: Offer tips and recommendations to improve the visual appeal of users' profiles, including suggestions for profile pictures, background photos, and formatting. | |
5. Skill Endorsement Suggestions: Recommend skills for users to endorse based on their profile information and industry trends, helping to strengthen their credibility and expertise. | |
6. Connection Recommendations: Analyze users' profiles and networking objectives to suggest potential connections, fostering valuable professional relationships and networking opportunities. | |
7. Performance Analytics: Provide insights into users' profile performance, including views, engagements, and profile strength over time, helping users track their progress and identify areas for improvement. | |
8. Customized Tips and Guides: Offer personalized tips and guides based on users' industry, job function, career level, and goals, helping them optimize their profiles for success. | |
9. Networking Tips: Provide recommendations and best practices for engaging with connections, joining relevant groups, and leveraging LinkedIn for networking and career advancement. | |
url = {text} | |
### Evaluation Output: | |
1. Display the name of the Linkedin profile Owner | |
2. Analyze the profile. Give a number and some explation. | |
3. Identify any key keywords that are missing from the Linkedin profile. | |
4. Offer specific and actionable tips to enhance the profile and improve its alignment with the job requirements. | |
""" | |
##stramlit | |
st.title("ProfileBoost: Turbocharge Your LinkedIn Profile ππππ") | |
st.text("AI-Powered Precision for Your Professional Presence π§π»βπ»π§π»βπ»") | |
jd = st.text_area("Paste your Linkedin URL") | |
submit = st.button('Boost π') | |
if submit: | |
response=get_gemini_response(input_prompt.format(text=jd)) | |
st.subheader(response) | |