Spaces:
Running
Running
Update main.py
Browse files
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:
|