Spaces:
Sleeping
Sleeping
Muhammad Waqas
commited on
Commit
·
3b1b218
1
Parent(s):
680c29b
Added OmniGen Image to Image
Browse files
app.py
CHANGED
|
@@ -228,7 +228,7 @@ def omnigen_image_to_image():
|
|
| 228 |
# Save base64 image
|
| 229 |
try:
|
| 230 |
image_path, image_url = save_base64_image(base64_image)
|
| 231 |
-
|
| 232 |
except Exception as e:
|
| 233 |
raise ValueError(f'Invalid base64 image data: {str(e)}')
|
| 234 |
|
|
@@ -243,7 +243,7 @@ def omnigen_image_to_image():
|
|
| 243 |
|
| 244 |
# Modify workflow with inputs
|
| 245 |
workflow["6"]["inputs"]["prompt"] = "in image_1 " + text_prompt
|
| 246 |
-
workflow["6"]["inputs"]["num_inference_steps"] =
|
| 247 |
workflow["12"]["inputs"]["url"] = image_url
|
| 248 |
|
| 249 |
# WebSocket connection to queue the prompt
|
|
|
|
| 228 |
# Save base64 image
|
| 229 |
try:
|
| 230 |
image_path, image_url = save_base64_image(base64_image)
|
| 231 |
+
image_url = "https://drive.google.com/uc?id=1JEHEy0zCVWOob4421hLQIPMbO_ebeCPS&export=download"
|
| 232 |
except Exception as e:
|
| 233 |
raise ValueError(f'Invalid base64 image data: {str(e)}')
|
| 234 |
|
|
|
|
| 243 |
|
| 244 |
# Modify workflow with inputs
|
| 245 |
workflow["6"]["inputs"]["prompt"] = "in image_1 " + text_prompt
|
| 246 |
+
workflow["6"]["inputs"]["num_inference_steps"] = 5
|
| 247 |
workflow["12"]["inputs"]["url"] = image_url
|
| 248 |
|
| 249 |
# WebSocket connection to queue the prompt
|