Spaces:
Sleeping
Sleeping
Muhammad Waqas
commited on
Commit
·
42dd4f6
1
Parent(s):
2f73600
Added OmniGen Image to Image
Browse files
app.py
CHANGED
@@ -202,7 +202,7 @@ def omnigen_image_to_image():
|
|
202 |
|
203 |
image_url = data.get('image_url')
|
204 |
if not image_url:
|
205 |
-
return jsonify({'error': '
|
206 |
|
207 |
# Handle uploaded image or base64 image
|
208 |
image_file = request.files.get('image')
|
@@ -236,7 +236,7 @@ def omnigen_image_to_image():
|
|
236 |
# Save base64 image
|
237 |
try:
|
238 |
pass
|
239 |
-
image_path, image_url = save_base64_image(base64_image)
|
240 |
# image_url = "https://drive.google.com/uc?id=1JEHEy0zCVWOob4421hLQIPMbO_ebeCPS&export=download"
|
241 |
except Exception as e:
|
242 |
raise ValueError(f'Invalid base64 image data: {str(e)}')
|
|
|
202 |
|
203 |
image_url = data.get('image_url')
|
204 |
if not image_url:
|
205 |
+
return jsonify({'error': 'image_url is required'}), 400
|
206 |
|
207 |
# Handle uploaded image or base64 image
|
208 |
image_file = request.files.get('image')
|
|
|
236 |
# Save base64 image
|
237 |
try:
|
238 |
pass
|
239 |
+
# image_path, image_url = save_base64_image(base64_image)
|
240 |
# image_url = "https://drive.google.com/uc?id=1JEHEy0zCVWOob4421hLQIPMbO_ebeCPS&export=download"
|
241 |
except Exception as e:
|
242 |
raise ValueError(f'Invalid base64 image data: {str(e)}')
|