Update app.py
Browse files
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
|
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 |
|