Update app.py
Browse files
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/
|
| 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:
|