jatin-tec commited on
Commit
bb17e10
·
1 Parent(s): 6a4f28e
Files changed (2) hide show
  1. index.py +1 -0
  2. main.py +1 -0
index.py CHANGED
@@ -63,6 +63,7 @@ def predict(image):
63
 
64
  def recommendation(response):
65
  openai.api_key = os.getenv("OPENAI_API_KEY")
 
66
  json = response
67
 
68
  if json.get('msg') == "success":
 
63
 
64
  def recommendation(response):
65
  openai.api_key = os.getenv("OPENAI_API_KEY")
66
+ print(os.getenv("OPENAI_API_KEY"), 'key here')
67
  json = response
68
 
69
  if json.get('msg') == "success":
main.py CHANGED
@@ -41,6 +41,7 @@ def sentence_builder(age, sex, skin_type, allergies, diet, file):
41
 
42
  try:
43
  response = index.recommendation(data)
 
44
  content = response['choices'][0]['message']['content']
45
  return content, output1, output2, output3, output4
46
  except:
 
41
 
42
  try:
43
  response = index.recommendation(data)
44
+ print(response)
45
  content = response['choices'][0]['message']['content']
46
  return content, output1, output2, output3, output4
47
  except: