Spaces:
Sleeping
Sleeping
init
Browse files- .env +1 -0
- app.py +64 -0
- requirements.txt +4 -0
.env
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
GOOGLE_API_KEY="AIzaSyCKlky33968yEhA2ozihCUdAKNk77lxots"
|
app.py
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import google.generativeai as genai
|
3 |
+
import os
|
4 |
+
from dotenv import load_dotenv
|
5 |
+
load_dotenv()
|
6 |
+
|
7 |
+
|
8 |
+
genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
|
9 |
+
|
10 |
+
|
11 |
+
#gemini function
|
12 |
+
|
13 |
+
def get_gemini_response(input):
|
14 |
+
model=genai.GenerativeModel('gemini-pro')
|
15 |
+
response = model.generate_content(input)
|
16 |
+
return response.text
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
input_prompt ="""
|
21 |
+
|
22 |
+
|
23 |
+
### 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:
|
24 |
+
|
25 |
+
1. Profile Completeness Analysis: Assess the completeness of users' LinkedIn profiles and offer suggestions to fill any missing information or sections.
|
26 |
+
|
27 |
+
2. Keyword Optimization: Analyze users' profiles to identify relevant keywords and optimize their content for improved visibility in LinkedIn search results.
|
28 |
+
|
29 |
+
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.
|
30 |
+
|
31 |
+
4. Visual Enhancement: Offer tips and recommendations to improve the visual appeal of users' profiles, including suggestions for profile pictures, background photos, and formatting.
|
32 |
+
|
33 |
+
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.
|
34 |
+
|
35 |
+
6. Connection Recommendations: Analyze users' profiles and networking objectives to suggest potential connections, fostering valuable professional relationships and networking opportunities.
|
36 |
+
|
37 |
+
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.
|
38 |
+
|
39 |
+
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.
|
40 |
+
|
41 |
+
9. Networking Tips: Provide recommendations and best practices for engaging with connections, joining relevant groups, and leveraging LinkedIn for networking and career advancement.
|
42 |
+
|
43 |
+
|
44 |
+
url = {text}
|
45 |
+
|
46 |
+
|
47 |
+
### Evaluation Output:
|
48 |
+
1. Display the name of the Linkedin profile Owner
|
49 |
+
2. Analyze the profile. Give a number and some explation.
|
50 |
+
3. Identify any key keywords that are missing from the Linkedin profile.
|
51 |
+
4. Offer specific and actionable tips to enhance the profile and improve its alignment with the job requirements.
|
52 |
+
"""
|
53 |
+
|
54 |
+
##stramlit
|
55 |
+
|
56 |
+
st.title("ProfileBoost: Turbocharge Your LinkedIn Profile ππππ")
|
57 |
+
st.text("AI-Powered Precision for Your Professional Presence π§π»βπ»π§π»βπ»")
|
58 |
+
jd = st.text_area("Paste your Linkedin URL")
|
59 |
+
|
60 |
+
|
61 |
+
submit = st.button('Boost π')
|
62 |
+
if submit:
|
63 |
+
response=get_gemini_response(input_prompt.format(text=jd))
|
64 |
+
st.subheader(response)
|
requirements.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
streamlit
|
2 |
+
PyPDF2
|
3 |
+
google-generativeai
|
4 |
+
python-dotenv
|