Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def get_image_html(year):
|
|
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/
|
37 |
keywords = match.iloc[0]['KEYWORDS']
|
38 |
# Place keywords above the image
|
39 |
return f"<b>π· Keywords:</b> π {keywords}<br><img src='{image_url}' width='800'/>"
|
|
|
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/raw/main/TExams/{image_filename}'
|
37 |
keywords = match.iloc[0]['KEYWORDS']
|
38 |
# Place keywords above the image
|
39 |
return f"<b>π· Keywords:</b> π {keywords}<br><img src='{image_url}' width='800'/>"
|