Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def upload_to_chevereto(image_path: str):
|
|
44 |
"""Uploads the generated image to Chevereto and returns the URL"""
|
45 |
with open(image_path, "rb") as img_file:
|
46 |
files = {"source": img_file}
|
47 |
-
data = {"key": CHEVERETO_API_KEY, "format": "json", "
|
48 |
|
49 |
response = requests.post(CHEVERETO_API_URL, files=files, data=data)
|
50 |
|
|
|
44 |
"""Uploads the generated image to Chevereto and returns the URL"""
|
45 |
with open(image_path, "rb") as img_file:
|
46 |
files = {"source": img_file}
|
47 |
+
data = {"key": CHEVERETO_API_KEY, "format": "json", "album_id": CHEVERETO_ALBUM_ID,"expiration": "PT10M"}
|
48 |
|
49 |
response = requests.post(CHEVERETO_API_URL, files=files, data=data)
|
50 |
|