ASNVS commited on
Commit
2258d5c
·
verified ·
1 Parent(s): 34cc0ae
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -10,8 +10,8 @@ def get_job_openings(job_title, location, location_type, experience):
10
  url = "https://jsearch.p.rapidapi.com/search"
11
  querystring = {
12
  "query": f"{job_title} in {location}",
13
- "page": "1",
14
- "num_pages": "1",
15
  "remote_jobs_only": "true" if location_type == "REMOTE" else "false",
16
  "employment_types": experience
17
  }
@@ -54,8 +54,8 @@ with gr.Blocks(theme=gr.themes.Base()) as demo:
54
  gr.Markdown("# 🎯 Career Connect")
55
  gr.Markdown("Find the latest job openings based on your preferences.")
56
 
57
- job_title = gr.Textbox(label="**Enter Job Title**", placeholder="e.g., Node.js Developer")
58
- location = gr.Textbox(label="**Enter Location**", placeholder="e.g., New York")
59
  location_type = gr.Dropdown(["ANY", "ON_SITE", "REMOTE", "HYBRID"], label="Location Type")
60
  experience = gr.Dropdown(["FULLTIME", "PARTTIME", "INTERN", "CONTRACTOR"], label="Experience Level")
61
 
 
10
  url = "https://jsearch.p.rapidapi.com/search"
11
  querystring = {
12
  "query": f"{job_title} in {location}",
13
+ "page": "2",
14
+ "num_pages": "2",
15
  "remote_jobs_only": "true" if location_type == "REMOTE" else "false",
16
  "employment_types": experience
17
  }
 
54
  gr.Markdown("# 🎯 Career Connect")
55
  gr.Markdown("Find the latest job openings based on your preferences.")
56
 
57
+ job_title = gr.Textbox(label="Enter Job Title", placeholder="e.g., Node.js Developer")
58
+ location = gr.Textbox(label="Enter Location", placeholder="e.g., New York")
59
  location_type = gr.Dropdown(["ANY", "ON_SITE", "REMOTE", "HYBRID"], label="Location Type")
60
  experience = gr.Dropdown(["FULLTIME", "PARTTIME", "INTERN", "CONTRACTOR"], label="Experience Level")
61