Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 33 |
-
|
|
|
|
| 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,
|