AmandaPanda commited on
Commit
d16c2a2
·
verified ·
1 Parent(s): c3d8129

Change data source back to Photos folder.

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -70,19 +70,19 @@ def caption_random_image():
70
 
71
 
72
  # AA: pick random row - from DF
73
- sample = df.sample(1).iloc[0]
74
 
75
 
76
  # BB: Pick a random image path - image from folder
77
- ##img_path = random.choice(image_paths)
78
 
79
 
80
  # BB: Load into PIL - image from folder - image from folder
81
- ##image = Image.open(img_path).convert("RGB")
82
 
83
 
84
  # AA: Image - for DF
85
- image = sample["image"]
86
 
87
 
88
  # Unconditional image captioning
 
70
 
71
 
72
  # AA: pick random row - from DF
73
+ ##sample = df.sample(1).iloc[0]
74
 
75
 
76
  # BB: Pick a random image path - image from folder
77
+ img_path = random.choice(image_paths)
78
 
79
 
80
  # BB: Load into PIL - image from folder - image from folder
81
+ image = Image.open(img_path).convert("RGB")
82
 
83
 
84
  # AA: Image - for DF
85
+ ##image = sample["image"]
86
 
87
 
88
  # Unconditional image captioning