Skip to content

Commit

Permalink
Reorganized structure of program
Browse files Browse the repository at this point in the history
  • Loading branch information
richardp23 committed Jun 27, 2024
1 parent c2f7a32 commit dee4cd7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions api_integration/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from api_integration.edamam_integration import get_recipe
from api_integration.openai_integration import alt_recipe_query
File renamed without changes.
File renamed without changes.
8 changes: 5 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import os

from dotenv import load_dotenv
from edamam_integration import get_recipe
from openai_integration import alt_recipe_query
from api_integration.edamam_integration import get_recipe
from api_integration.openai_integration import alt_recipe_query

# Importing env variables for API authentication
load_dotenv()
Expand Down Expand Up @@ -41,11 +41,13 @@ def make_recipe():
" dish you would like to make: ")

recipe_query = get_recipe(EDAMAM_APP_ID, EDAMAM_APP_KEY, requested_recipe)
print(f"\n{alt_recipe_query(OPENAI_KEY, diet, recipe_query)}\n")
new_recipe = f"\n{alt_recipe_query(OPENAI_KEY, diet, recipe_query)}\n"
print(new_recipe)


def lookup_prev_recipe():
return True


if __name__ == "__main__":
main()

0 comments on commit dee4cd7

Please sign in to comment.