diff --git a/app.py b/app.py index 945a709..3b294de 100644 --- a/app.py +++ b/app.py @@ -345,8 +345,14 @@ def add_recipe(): if len(step) == 1: description += "
" continue - img = requests.get(step[1]) - img_data = 'data:image/png;base64,' + convert_image_to_base64(img.content) + # img = requests.get(step[1]) + # img_data = 'data:image/png;base64,' + convert_image_to_base64(img.content) + img = upload_image(step[1]) + if img: + img_data = img + else: + img = requests.get(step[1]) + img_data = 'data:image/png;base64,' + convert_image_to_base64(img.content) description += f'\n\n\n' description += "
"