Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -183,7 +183,7 @@ def index():
|
|
183 |
last_update_utc = datetime.strptime(redis_client.get('NEWSFETCHTIME'), '%Y-%m-%d %H:%M:%S.%f')
|
184 |
last_update_mins = int(np.ceil((datetime.now() - last_update_utc).seconds / 60))
|
185 |
last_update_str = f'Updated {last_update_mins} {"minutes" if last_update_mins > 1 else "minute"} ago'
|
186 |
-
result_str += f'<p class="srctxt">News aggregated from <b>{src_str}</b>.<br><br>{last_update_str} <a href="{UK_EDITION_URL}">Switch to UK edition</a></p>'
|
187 |
|
188 |
result_str += '''
|
189 |
<div class="input-container">
|
@@ -196,7 +196,10 @@ def index():
|
|
196 |
result_str += '<div class="show-more-word-cloud" onclick=word_cloud_display()><p class="three-dots">...</p></div>'
|
197 |
|
198 |
result_str += '''<div style="padding-bottom: 10px; font-size: 12px; font-family: Arial, Helvetica, sans-serif;">
|
199 |
-
News categories and similar news are AI-generated</div>
|
|
|
|
|
|
|
200 |
|
201 |
|
202 |
for n, i in final_df.iterrows(): # iterating through the search results
|
|
|
183 |
last_update_utc = datetime.strptime(redis_client.get('NEWSFETCHTIME'), '%Y-%m-%d %H:%M:%S.%f')
|
184 |
last_update_mins = int(np.ceil((datetime.now() - last_update_utc).seconds / 60))
|
185 |
last_update_str = f'Updated {last_update_mins} {"minutes" if last_update_mins > 1 else "minute"} ago'
|
186 |
+
result_str += f'<p class="srctxt">News aggregated from <b>{src_str}</b>.<br><br>{last_update_str} <a href="{UK_EDITION_URL}"><b>Switch to UK edition</b></a></p>'
|
187 |
|
188 |
result_str += '''
|
189 |
<div class="input-container">
|
|
|
196 |
result_str += '<div class="show-more-word-cloud" onclick=word_cloud_display()><p class="three-dots">...</p></div>'
|
197 |
|
198 |
result_str += '''<div style="padding-bottom: 10px; font-size: 12px; font-family: Arial, Helvetica, sans-serif;">
|
199 |
+
News categories and similar news are AI-generated</div>
|
200 |
+
<div style="padding-bottom: 10px; font-size: 12px; font-family: Arial, Helvetica, sans-serif; font-weight: bold;">
|
201 |
+
{len(final_df)} news articles available</div>
|
202 |
+
'''
|
203 |
|
204 |
|
205 |
for n, i in final_df.iterrows(): # iterating through the search results
|