Spaces:
Sleeping
Sleeping
Update app.py
Browse files80 unmodified lines8182838485868788899091929394959697989980 unmodified lines# AA: pick random row - from DF##sample = df.sample(1).iloc[0]# BB: Pick a random image path - image from folderimg_path = random.choice(image_paths)# BB: Load into PIL - image from folder - image from folderimage = Image.open(img_path).convert("RGB")# AA: Image - for DF##image = sample["image"]# Unconditional image captioning80 unmodified lines8182838485868788899091929394959697989980 unmodified lines# AA: pick random row - from DFsample = df.sample(1).iloc[0]# BB: Pick a random image path - image from folder##img_path = random.choice(image_paths)# BB: Load into PIL - image from folder - image from folder##image = Image.open(img_path).convert("RGB")# AA: Image - for DFimage = sample["image"]# Unconditional image captioning
app.py+4-4