randydev commited on
Commit
f7f0fa3
1 Parent(s): beca021

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -0
main.py CHANGED
@@ -601,6 +601,7 @@ def dalle_3xl(
601
  ):
602
  API_URL = f"https://ufoptg-ufop-api.hf.space/dall-e-3/prompt={item.query}"
603
  try:
 
604
  response = requests.get(API_URL, headers=headers)
605
  response.raise_for_status()
606
  except requests.exceptions.RequestException:
 
601
  ):
602
  API_URL = f"https://ufoptg-ufop-api.hf.space/dall-e-3/prompt={item.query}"
603
  try:
604
+ headers = {"accept":"application/json", "Content-Type": "application/json"}
605
  response = requests.get(API_URL, headers=headers)
606
  response.raise_for_status()
607
  except requests.exceptions.RequestException: