shaina commited on
Commit
ce7e1a0
1 Parent(s): 10f5468

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -11
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
- with col1:
136
- st.write(i['title'])
137
- st.image(
138
- i['img'],
139
- width=100, # Manually Adjust the width of the image as per requirement
140
- )
141
- link_ = i['link']
142
- link_ = link_.replace("news.google.com/.", "https://news.google.com")
143
- link_path = "read this [article]" + "(" + link_ + ")"
144
- st.write(link_path)
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__":