OppaAI commited on
Commit
85a3319
·
verified ·
1 Parent(s): 77fd006

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -29,8 +29,9 @@ async def search_jobs_tool(query: str, location: str, date_created: str = None,
29
  except httpx.RequestError as e:
30
  return {"error": str(e)}
31
 
32
- async def search_jobs_ui(query, location, date_created=None, salary=None, job_type=None):
33
- result = await mcp.run("search_jobs", inputs={
 
34
  "query": query,
35
  "location": location,
36
  "date_created": date_created,
 
29
  except httpx.RequestError as e:
30
  return {"error": str(e)}
31
 
32
+ def search_jobs_ui(query, location, date_created=None, salary=None, job_type=None):
33
+ # NOTE: mcp.run() is synchronous, do NOT await it to avoid runtime error
34
+ result = mcp.run("search_jobs", inputs={
35
  "query": query,
36
  "location": location,
37
  "date_created": date_created,