Muhammad Waqas commited on
Commit
e13c67f
·
1 Parent(s): 80ca3a0

Added OmniGen Image to Image

Browse files
Files changed (1) hide show
  1. app.py +1 -4
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
- # 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
 
@@ -251,9 +251,6 @@ def omnigen_image_to_image():
251
  ws.connect(f"{ws_address}?clientId={client_id}&token={token}",
252
  header={"Authorization": f"Bearer {token}"})
253
 
254
- # Queue the prompt
255
- prompt_id = queue_prompt(workflow, token)
256
-
257
  images = get_images(ws, workflow, token)
258
  ws.close()
259
 
 
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
 
 
251
  ws.connect(f"{ws_address}?clientId={client_id}&token={token}",
252
  header={"Authorization": f"Bearer {token}"})
253
 
 
 
 
254
  images = get_images(ws, workflow, token)
255
  ws.close()
256