Spaces:
Runtime error
Runtime error
Commit
·
07da643
1
Parent(s):
fa57fe8
Update app.py
Browse files
app.py
CHANGED
@@ -20,8 +20,11 @@ dataset_api.download("Resources/images/average_sentiment_timeline.png")
|
|
20 |
dataset_api.download("Resources/images/most_positive_timeline.png")
|
21 |
|
22 |
if most_positive_article['pubdate'] == today: # show image generated for today's article
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
25 |
else:
|
26 |
news_img = 'https://raw.githubusercontent.com/SamuelHarner/app-images/main/images/delight-news-logo.png?raw=true'
|
27 |
|
|
|
20 |
dataset_api.download("Resources/images/most_positive_timeline.png")
|
21 |
|
22 |
if most_positive_article['pubdate'] == today: # show image generated for today's article
|
23 |
+
try:
|
24 |
+
dataset_api.download("Resources/images/news_image.png")
|
25 |
+
news_img = 'news_image.png'
|
26 |
+
except:
|
27 |
+
news_img = 'https://raw.githubusercontent.com/SamuelHarner/app-images/main/images/delight-news-logo.png?raw=true'
|
28 |
else:
|
29 |
news_img = 'https://raw.githubusercontent.com/SamuelHarner/app-images/main/images/delight-news-logo.png?raw=true'
|
30 |
|