martynka commited on
Commit
27f3941
·
verified ·
1 Parent(s): 4310d83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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", "album": CHEVERETO_ALBUM_ID}
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