martynka commited on
Commit
74bbd7b
·
verified ·
1 Parent(s): aaff297

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def generate_image(prompt: str, model_name: str):
41
  def upload_to_chevereto(image_path: str):
42
  with open(image_path, "rb") as img_file:
43
  files = {"source": img_file}
44
- data = {"key": CHEVERETO_API_KEY, "format": "json", "album_id": CHEVERETO_ALBUM_ID, "expiration": "PT10M"}
45
 
46
  response = requests.post(CHEVERETO_API_URL, files=files, data=data)
47
 
 
41
  def upload_to_chevereto(image_path: str):
42
  with open(image_path, "rb") as img_file:
43
  files = {"source": img_file}
44
+ data = {"key": CHEVERETO_API_KEY, "format": "json", "album_id": CHEVERETO_ALBUM_ID}
45
 
46
  response = requests.post(CHEVERETO_API_URL, files=files, data=data)
47