MK-316 commited on
Commit
22c7097
1 Parent(s): 43f7e95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def get_image_html(year):
31
  match = df[df['YEAR'] == year]
32
  if not match.empty:
33
  # Assuming 'LINK' column has the partial path like '2006_1.PNG'
34
- image_filename = match.iloc[0]['LINK']
35
  # Construct the full URL by appending the filename to the base path
36
  image_url = f'https://huggingface.co/spaces/MK-316/TCE/blob/main/TExams/{image_filename}'
37
  keywords = match.iloc[0]['KEYWORDS']
 
31
  match = df[df['YEAR'] == year]
32
  if not match.empty:
33
  # Assuming 'LINK' column has the partial path like '2006_1.PNG'
34
+ image_filename = match.iloc[0]['Filename']
35
  # Construct the full URL by appending the filename to the base path
36
  image_url = f'https://huggingface.co/spaces/MK-316/TCE/blob/main/TExams/{image_filename}'
37
  keywords = match.iloc[0]['KEYWORDS']