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

Test: Changing data sources

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