Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -131,8 +131,12 @@ def main():
|
|
131 |
|
132 |
st.header("Latest Covid News")
|
133 |
latest_news = news()
|
134 |
-
for i in latest_news[0:
|
135 |
st.write(i['title'])
|
|
|
|
|
|
|
|
|
136 |
link_ = i['link']
|
137 |
link_ = link_.replace("news.google.com/.", "https://news.google.com")
|
138 |
st.markdown(link_)
|
|
|
131 |
|
132 |
st.header("Latest Covid News")
|
133 |
latest_news = news()
|
134 |
+
for i in latest_news[0:5]:
|
135 |
st.write(i['title'])
|
136 |
+
st.image(
|
137 |
+
i['img'],
|
138 |
+
width=100, # Manually Adjust the width of the image as per requirement
|
139 |
+
)
|
140 |
link_ = i['link']
|
141 |
link_ = link_.replace("news.google.com/.", "https://news.google.com")
|
142 |
st.markdown(link_)
|