Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -132,17 +132,16 @@ def main():
|
|
132 |
st.header("Latest Covid News")
|
133 |
latest_news = news()
|
134 |
for i in latest_news[0:5]:
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
st.write(" ")
|
146 |
|
147 |
|
148 |
if __name__ == "__main__":
|
|
|
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 |
+
link_path = "read this [article]" + "(" + link_ + ")"
|
143 |
+
st.write(link_path)
|
144 |
+
st.write(" ")
|
|
|
145 |
|
146 |
|
147 |
if __name__ == "__main__":
|