riteshkokam commited on
Commit
85c7b12
·
verified ·
1 Parent(s): 0215b5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -3
app.py CHANGED
@@ -21,8 +21,15 @@ genai_client = genai.Client(api_key=os.getenv("GEMINI_API_KEY"))
21
  PER_PAGE = 10
22
 
23
  SYSTEM_PROMPT = """
24
- You are a job-matching assistant. Given a resume and job listings,
25
- rank and explain why each job is a good fit.
 
 
 
 
 
 
 
26
  """
27
 
28
  # 1️⃣ Extract text from resume
@@ -188,7 +195,7 @@ def load_jobs_and_pages(resume, added_kw, use_ai):
188
  return full_table, explanation, expl_header, slider_update, first_page_data, page_info
189
 
190
  # 8️⃣ Gradio UI
191
- with gr.Blocks(theme=gr.themes.Base()) as demo:
192
  gr.Markdown("## 🌍 Global Job Finder")
193
 
194
  with gr.Row():
@@ -212,6 +219,7 @@ with gr.Blocks(theme=gr.themes.Base()) as demo:
212
  datatype=["str", "str", "str", "str", "str", "html"],
213
  interactive=False,
214
  wrap=True,
 
215
  value=[]
216
  )
217
 
 
21
  PER_PAGE = 10
22
 
23
  SYSTEM_PROMPT = """
24
+ You are a job-matching assistant. Given a resume and job listings, rank and explain why each job is a good fit.
25
+
26
+ Return your output as a ranked markdown list of jobs. For each job, include the following:
27
+ - Job Title
28
+ - Company Name
29
+ - Location (if available)
30
+ - Why this job is a good match (1–2 sentences)
31
+
32
+ Keep the tone professional and concise, suitable for display in a career guidance app.
33
  """
34
 
35
  # 1️⃣ Extract text from resume
 
195
  return full_table, explanation, expl_header, slider_update, first_page_data, page_info
196
 
197
  # 8️⃣ Gradio UI
198
+ with gr.Blocks(theme='Nymbo/Nymbo_Theme') as demo:
199
  gr.Markdown("## 🌍 Global Job Finder")
200
 
201
  with gr.Row():
 
219
  datatype=["str", "str", "str", "str", "str", "html"],
220
  interactive=False,
221
  wrap=True,
222
+ column_widths=["20%", "20%", "20%", "15%", "15%", "10%"],
223
  value=[]
224
  )
225