multimodalart HF Staff commited on
Commit
d7d81bb
·
verified ·
1 Parent(s): abca36d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -410,7 +410,7 @@ def unified_image_generator(prompt: str, images: Optional[List[str]], previous_v
410
  aspect_ratio=aspect_ratio,
411
  ),
412
  )
413
-
414
  response = client.models.generate_content(
415
  model=model_name,
416
  contents=contents,
@@ -428,7 +428,8 @@ def unified_image_generator(prompt: str, images: Optional[List[str]], previous_v
428
  # The crucial check for continuity
429
  if images[0][0] == last_frame_path:
430
  can_extend_video = True
431
-
 
432
  return (output_path, gr.update(visible=can_create_video), gr.update(visible=can_extend_video), gr.update(visible=False))
433
  except Exception as e:
434
  raise gr.Error(f"Image generation failed: {e}. Rephrase your prompt to make image generation explicit and try again")
 
410
  aspect_ratio=aspect_ratio,
411
  ),
412
  )
413
+ print(f"Generating image for user {username} with prompt {prompt}")
414
  response = client.models.generate_content(
415
  model=model_name,
416
  contents=contents,
 
428
  # The crucial check for continuity
429
  if images[0][0] == last_frame_path:
430
  can_extend_video = True
431
+
432
+ print(f"Image generated at {output_path}")
433
  return (output_path, gr.update(visible=can_create_video), gr.update(visible=can_extend_video), gr.update(visible=False))
434
  except Exception as e:
435
  raise gr.Error(f"Image generation failed: {e}. Rephrase your prompt to make image generation explicit and try again")