Skip to content

Commit

Permalink
fix: resolve lint errors part 4
Browse files Browse the repository at this point in the history
  • Loading branch information
citruscai committed Oct 10, 2024
1 parent 0b21237 commit b461129
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ def get_description_suggestion():
Handles suggestion requests
"""
description = request.json.get("description")
descriptionType = request.json.get("type")
if not description or not descriptionType:
description_type = request.json.get("type")
if not description or not description_type:
return jsonify({"error": "Description and type are required"}), 400
suggestion = get_suggestion(description, descriptionType)
suggestion = get_suggestion(description, description_type)
return jsonify({"suggestion": suggestion})
6 changes: 3 additions & 3 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
genai.configure(api_key=GOOGLE_API_KEY)


def get_suggestion(description, descriptionType):
def get_suggestion(description, description_type):
"""
give suggestions for description section using gemini (free alternative to openai's chatgpt api)
"""
prompt = ""
if descriptionType == "education":
if description_type == "education":
prompt = f"Improve the following education \
experience description for resume: {description}"
elif descriptionType == "experience":
elif description_type == "experience":
prompt = f"Improve the following professional \
experience description for resume: {description}"

Expand Down

0 comments on commit b461129

Please sign in to comment.