MK-316 commited on
Commit
b592dcc
·
verified ·
1 Parent(s): 96d45fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def get_image_html(year):
27
  match = df[df['YEAR'] == year]
28
  if not match.empty:
29
  image_filename = match.iloc[0]['Filename']
30
- image_url = f'https://huggingface.co/spaces/MK-316/TCE/raw/main/TExams/{image_filename}'
31
  keywords = match.iloc[0]['TEXT']
32
  return f"<b>🌷 Keywords:</b> 🔑 {keywords}<br><img src='{image_url}' width='800'/>"
33
  else:
 
27
  match = df[df['YEAR'] == year]
28
  if not match.empty:
29
  image_filename = match.iloc[0]['Filename']
30
+ image_url = f'https://huggingface.co/spaces/MK-316/TCE/resolve/main/TExams/{image_filename}'
31
  keywords = match.iloc[0]['TEXT']
32
  return f"<b>🌷 Keywords:</b> 🔑 {keywords}<br><img src='{image_url}' width='800'/>"
33
  else: