Spaces:
Runtime error
Runtime error
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -1,13 +1,12 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import anthropic
|
| 3 |
import os
|
| 4 |
-
import json
|
| 5 |
|
| 6 |
client = anthropic.Anthropic(api_key=os.environ.get("ANTHROPIC_API_KEY"))
|
| 7 |
|
| 8 |
def analyze_skill_gap(job_title, current_skills, experience_level):
|
| 9 |
prompt = f"""You are a career advisor and skill gap analyst.
|
| 10 |
-
|
| 11 |
Job Title Target: {job_title}
|
| 12 |
Current Skills: {current_skills}
|
| 13 |
Experience Level: {experience_level}
|
|
@@ -31,21 +30,27 @@ Be specific, practical, and encouraging."""
|
|
| 31 |
with gr.Blocks(theme=gr.themes.Soft(), title="SkillScope") as demo:
|
| 32 |
gr.Markdown("# π― SkillScope β AI Skill Gap Analyzer")
|
| 33 |
gr.Markdown("Discover exactly what skills you need to land your dream job.")
|
| 34 |
-
|
| 35 |
with gr.Row():
|
| 36 |
-
with gr.Column():
|
| 37 |
-
job_title = gr.Textbox(
|
| 38 |
-
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
experience = gr.Dropdown(
|
| 41 |
-
choices=["Student / No experience", "0
|
| 42 |
-
label="Experience Level",
|
|
|
|
| 43 |
)
|
| 44 |
analyze_btn = gr.Button("π Analyze My Skill Gap", variant="primary")
|
| 45 |
-
|
| 46 |
-
with gr.Column():
|
| 47 |
-
output = gr.Markdown(label="Analysis")
|
| 48 |
-
|
| 49 |
analyze_btn.click(
|
| 50 |
fn=analyze_skill_gap,
|
| 51 |
inputs=[job_title, current_skills, experience],
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import anthropic
|
| 3 |
import os
|
|
|
|
| 4 |
|
| 5 |
client = anthropic.Anthropic(api_key=os.environ.get("ANTHROPIC_API_KEY"))
|
| 6 |
|
| 7 |
def analyze_skill_gap(job_title, current_skills, experience_level):
|
| 8 |
prompt = f"""You are a career advisor and skill gap analyst.
|
| 9 |
+
|
| 10 |
Job Title Target: {job_title}
|
| 11 |
Current Skills: {current_skills}
|
| 12 |
Experience Level: {experience_level}
|
|
|
|
| 30 |
with gr.Blocks(theme=gr.themes.Soft(), title="SkillScope") as demo:
|
| 31 |
gr.Markdown("# π― SkillScope β AI Skill Gap Analyzer")
|
| 32 |
gr.Markdown("Discover exactly what skills you need to land your dream job.")
|
| 33 |
+
|
| 34 |
with gr.Row():
|
| 35 |
+
with gr.Column(scale=1):
|
| 36 |
+
job_title = gr.Textbox(
|
| 37 |
+
label="Target Job Title",
|
| 38 |
+
placeholder="e.g. ML Engineer, Data Scientist"
|
| 39 |
+
)
|
| 40 |
+
current_skills = gr.Textbox(
|
| 41 |
+
label="Your Current Skills", lines=4,
|
| 42 |
+
placeholder="e.g. Python, basic ML, pandas, numpy..."
|
| 43 |
+
)
|
| 44 |
experience = gr.Dropdown(
|
| 45 |
+
choices=["Student / No experience", "0-1 years", "1-3 years", "3-5 years", "5+ years"],
|
| 46 |
+
label="Experience Level",
|
| 47 |
+
value="Student / No experience"
|
| 48 |
)
|
| 49 |
analyze_btn = gr.Button("π Analyze My Skill Gap", variant="primary")
|
| 50 |
+
|
| 51 |
+
with gr.Column(scale=1):
|
| 52 |
+
output = gr.Markdown(label="Analysis", value="*Your analysis will appear here...*")
|
| 53 |
+
|
| 54 |
analyze_btn.click(
|
| 55 |
fn=analyze_skill_gap,
|
| 56 |
inputs=[job_title, current_skills, experience],
|