Update app.py
Browse files
app.py
CHANGED
|
@@ -134,7 +134,7 @@ def format_insights(insights, visuals):
|
|
| 134 |
<p style="margin: 5px 0 0 0; font-size: 16px; color: #333; font-weight: 500;">{insight}</p>
|
| 135 |
</div>
|
| 136 |
</div>
|
| 137 |
-
{f'<img src="/
|
| 138 |
</div>
|
| 139 |
""" for idx, (title, insight) in enumerate(insight_items)
|
| 140 |
])
|
|
|
|
| 134 |
<p style="margin: 5px 0 0 0; font-size: 16px; color: #333; font-weight: 500;">{insight}</p>
|
| 135 |
</div>
|
| 136 |
</div>
|
| 137 |
+
{f'<img src="file/{os.path.basename(visuals[idx])}" style="max-width: 100%; height: auto; margin-top: 10px; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">' if idx < len(visuals) else ''}
|
| 138 |
</div>
|
| 139 |
""" for idx, (title, insight) in enumerate(insight_items)
|
| 140 |
])
|