OppaAI commited on
Commit
a9d13df
·
verified ·
1 Parent(s): 5883ab3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -8,6 +8,9 @@ mcp = FastMCP("RapidAPI Job Search Agent")
8
  RAPIDAPI_URL = "https://indeed-indeed.p.rapidapi.com/apisearch?v=2&format=json&q=java&l=austin%2C%20tx&radius=25"
9
  RAPIDAPI_HOST = "indeed-indeed.p.rapidapi.com"
10
 
 
 
 
11
  @mcp.tool(name="search_jobs")
12
  def search_jobs_tool(query: str, location: str, date_created: str = None, salary: str = None, job_type: str = None):
13
  """
 
8
  RAPIDAPI_URL = "https://indeed-indeed.p.rapidapi.com/apisearch?v=2&format=json&q=java&l=austin%2C%20tx&radius=25"
9
  RAPIDAPI_HOST = "indeed-indeed.p.rapidapi.com"
10
 
11
+ # Load RapidAPI key from HF secret (environment variable)
12
+ RAPIDAPI_KEY = os.getenv("RAPIDAPI_KEY") # Make sure this matches your secret name exactly
13
+
14
  @mcp.tool(name="search_jobs")
15
  def search_jobs_tool(query: str, location: str, date_created: str = None, salary: str = None, job_type: str = None):
16
  """