AhmadMustafa commited on
Commit
5f29e78
·
1 Parent(s): d7401be

add: extra path for firebase not available

Browse files
Files changed (1) hide show
  1. crop_utils.py +4 -2
crop_utils.py CHANGED
@@ -870,8 +870,10 @@ def get_image_crop(cid=None, rsid=None, uid=None):
870
  Returns:
871
  gr.Gallery: Gallery of all generated images
872
  """
873
- # image_paths = get_sprite_firebase(cid, rsid, uid)
874
- image_paths = ["data/sprite1.jpg", "data/sprite2.jpg"]
 
 
875
  # Lists to store all images
876
  all_images = []
877
  all_captions = []
 
870
  Returns:
871
  gr.Gallery: Gallery of all generated images
872
  """
873
+ try:
874
+ image_paths = get_sprite_firebase(cid, rsid, uid)
875
+ except Exception:
876
+ image_paths = ["data/sprite1.jpg", "data/sprite2.jpg"]
877
  # Lists to store all images
878
  all_images = []
879
  all_captions = []