Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,121 +1,40 @@
|
|
1 |
import streamlit as st
|
2 |
-
|
3 |
|
4 |
from langchain_community.llms import OpenAI
|
5 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
6 |
|
7 |
|
8 |
# Page configuration
|
9 |
-
st.set_page_config(
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
def main():
|
18 |
-
roles_and_topics = {
|
19 |
-
|
20 |
-
"Front-End Developer": ["HTML/CSS", "JavaScript and Frameworks (React, Angular, Vue.js)", "Responsive Design", "Browser Compatibility"],
|
21 |
-
"Back-End Developer": ["Server-Side Languages (Node.js, Python, Ruby, PHP)", "Database Management (SQL, NoSQL)", "API Development", "Server and Hosting Management"],
|
22 |
-
"Full-Stack Developer": ["Combination of Front-End and Back-End Topics", "Integration of Systems", "DevOps Basics"],
|
23 |
-
"Mobile Developer": ["Android Development (Java, Kotlin)", "iOS Development (Swift, Objective-C)", "Cross-Platform Development (Flutter, React Native)"],
|
24 |
-
"Data Scientist": ["Statistical Analysis", "Machine Learning Algorithms", "Data Wrangling and Cleaning", "Data Visualization"],
|
25 |
-
"Data Analyst": ["Data Collection and Processing", "SQL and Database Querying", "Data Visualization Tools (Tableau, Power BI)", "Basic Statistics"],
|
26 |
-
"Machine Learning Engineer": ["Supervised and Unsupervised Learning", "Model Deployment", "Deep Learning", "Natural Language Processing"],
|
27 |
-
"DevOps Engineer": ["Continuous Integration/Continuous Deployment (CI/CD)", "Containerization (Docker, Kubernetes)", "Infrastructure as Code (Terraform, Ansible)", "Cloud Platforms (AWS, Azure, Google Cloud)"],
|
28 |
-
"Cloud Engineer": ["Cloud Architecture", "Cloud Services (Compute, Storage, Networking)", "Security in the Cloud", "Cost Management"],
|
29 |
-
"Cybersecurity Analyst": ["Threat Detection and Mitigation", "Security Protocols and Encryption", "Network Security", "Incident Response"],
|
30 |
-
"Penetration Tester": ["Vulnerability Assessment", "Ethical Hacking Techniques", "Security Tools (Metasploit, Burp Suite)", "Report Writing and Documentation"],
|
31 |
-
"Project Manager": ["Project Planning and Scheduling", "Risk Management", "Agile and Scrum Methodologies", "Stakeholder Communication"],
|
32 |
-
"UX/UI Designer": ["User Research", "Wireframing and Prototyping", "Design Principles", "Usability Testing"],
|
33 |
-
"Quality Assurance (QA) Engineer": ["Testing Methodologies", "Automation Testing", "Bug Tracking", "Performance Testing"],
|
34 |
-
"Blockchain Developer": ["Blockchain Fundamentals", "Smart Contracts", "Cryptographic Algorithms", "Decentralized Applications (DApps)"],
|
35 |
-
"Digital Marketing Specialist": ["SEO/SEM", "Social Media Marketing", "Content Marketing", "Analytics and Reporting"],
|
36 |
-
"AI Research Scientist": ["AI Theory", "Algorithm Development", "Neural Networks", "Natural Language Processing"],
|
37 |
-
"AI Engineer": ["AI Model Deployment", "Machine Learning Engineering", "Deep Learning", "AI Tools and Frameworks"],
|
38 |
-
"Generative AI Specialist (GenAI)": ["Generative Models", "GANs (Generative Adversarial Networks)", "Creative AI Applications", "Ethics in AI"],
|
39 |
-
"Generative Business Intelligence Specialist (GenBI)": ["Automated Data Analysis", "Business Intelligence Tools", "Predictive Analytics", "AI in Business Strategy"]
|
40 |
-
|
41 |
-
|
42 |
-
}
|
43 |
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
st.header("Select AI:")
|
50 |
-
model = st.radio("Model", [ "Gemini","Open AI",])
|
51 |
-
st.write("Selected option:", model)
|
52 |
|
|
|
|
|
53 |
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
|
|
|
|
|
|
63 |
|
64 |
|
65 |
-
with col4:
|
66 |
-
selected_level = st.selectbox('Select level of understanding', levels)
|
67 |
-
|
68 |
-
with col1:
|
69 |
-
selected_topic_level = st.selectbox('Select Role', list(roles_and_topics.keys()))
|
70 |
-
|
71 |
-
with col2:
|
72 |
-
selected_topic = st.selectbox('Select Topic', roles_and_topics[selected_topic_level])
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
with col5:
|
79 |
-
selected_Question_Difficulty = st.selectbox('Select Question Difficulty', Question_Difficulty)
|
80 |
-
|
81 |
-
with col3:
|
82 |
-
num_quizzes = st.slider('Number of Questions', min_value=1, max_value= 10, value=1)
|
83 |
-
|
84 |
-
submit = st.button('Generate Questions')
|
85 |
-
st.write(selected_topic_level, selected_topic, num_quizzes, selected_Question_Difficulty, selected_level, model)
|
86 |
-
|
87 |
-
# Final Response
|
88 |
-
if submit:
|
89 |
-
questions,answers = GetLLMResponse(selected_topic_level, selected_topic, num_quizzes, selected_Question_Difficulty, selected_level, model)
|
90 |
-
|
91 |
-
with st.spinner("Generating Quizzes..."):
|
92 |
-
questions,answers = GetLLMResponse(selected_topic_level, selected_topic, num_quizzes, selected_Question_Difficulty, selected_level, model)
|
93 |
-
st.success("Quizzes Generated!")
|
94 |
|
95 |
|
96 |
-
|
97 |
-
# Display questions and answers in a table
|
98 |
-
if questions:
|
99 |
-
st.subheader("Quiz Questions and Answers:")
|
100 |
-
# Prepare data for the table
|
101 |
-
col1, col2 = st.columns(2)
|
102 |
-
with col1:
|
103 |
-
st.subheader("Questions")
|
104 |
-
|
105 |
-
st.write(questions)
|
106 |
-
|
107 |
-
with col2:
|
108 |
-
st.subheader("Answers")
|
109 |
-
|
110 |
-
st.write(answers)
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
else:
|
115 |
-
st.warning("No Quiz Questions and Answers")
|
116 |
-
|
117 |
-
else:
|
118 |
-
st.warning("Click the 'Generate Quizzes' button to create quizzes.")
|
119 |
|
120 |
|
121 |
|
|
|
1 |
import streamlit as st
|
2 |
+
|
3 |
|
4 |
from langchain_community.llms import OpenAI
|
5 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
6 |
|
7 |
|
8 |
# Page configuration
|
9 |
+
st.set_page_config(
|
10 |
+
page_title="Job Description Analysis",
|
11 |
+
page_icon=":briefcase:",
|
12 |
+
layout="wide",
|
13 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
+
def main():
|
16 |
+
st.sidebar.title("Navigation")
|
17 |
+
st.sidebar.markdown("Select a page to view")
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
+
# Navigation options
|
20 |
+
page = st.sidebar.radio("Go to", ["Home","About", "Job Description Analysis", "Interview Preparation","Resume Maker","Projects Suggestion","Projects Guide"])
|
21 |
|
22 |
+
if page == "Home":
|
23 |
+
st.title("Welcome to Job Description Analysis App")
|
24 |
+
st.write("Use the navigation menu to select different pages of the application.")
|
25 |
+
elif page == "Job Description Analysis":
|
26 |
+
import Job_Description_Analysis
|
27 |
+
Job_Description_Analysis.app()
|
28 |
+
elif page == "About":
|
29 |
+
import About
|
30 |
+
About.app()
|
31 |
+
elif page == "Interview Preparation":
|
32 |
+
import Interview_preparation.py
|
33 |
+
Interview_preparation.app()
|
34 |
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
|
39 |
|
40 |
|