mylesai commited on
Commit
51187e4
·
verified ·
1 Parent(s): eb51652

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -139,8 +139,6 @@ def get_seo_tags(image_path, topical_map, attempts=0):
139
  response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
140
  print(response.json())
141
 
142
- if response.json()['choices'][0]['message']['content'] == 'irrelevant':
143
- return {'topic': 'irrelevant'}
144
 
145
  while True:
146
  try:
 
139
  response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
140
  print(response.json())
141
 
 
 
142
 
143
  while True:
144
  try: