yonatanbitton commited on
Commit
419acb5
1 Parent(s): 724bf24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -23,8 +23,10 @@ df = df.sample(frac=1)
23
  # x) + '"/> </a>')
24
  # df['image'] = df['image_url'].apply(lambda x: '<a href= "' + str(x) + '" target="_blank"> <img src= "' + str(
25
  # x) + '" width="400"/> </a>')
26
- df['image'] = df['image'].apply(lambda x: '<a href= "' + str(x) + '" target="_blank"> <img src= "' + str(
27
- x) + '" width="400"/> </a>')
 
 
28
 
29
  cols = list(df.columns)
30
  cols.insert(0, cols.pop(cols.index('image')))
 
23
  # x) + '"/> </a>')
24
  # df['image'] = df['image_url'].apply(lambda x: '<a href= "' + str(x) + '" target="_blank"> <img src= "' + str(
25
  # x) + '" width="400"/> </a>')
26
+ # df['image'] = df['image'].apply(lambda x: '<a href= "' + str(x) + '" target="_blank"> <img src= "' + str(
27
+ # x) + '" width="400"/> </a>')
28
+ df['image'] = df['image'].apply(lambda x: '<a href= "' + str(x['path']) + '" target="_blank"> <img src= "' + str(
29
+ x['path']) + '" width="400"/> </a>')
30
 
31
  cols = list(df.columns)
32
  cols.insert(0, cols.pop(cols.index('image')))