shaina commited on
Commit
fbceed6
·
1 Parent(s): 1e7b5e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -130,7 +130,7 @@ def main():
130
  st.error("Sorry! Couldn't process the request")
131
 
132
  st.header("Latest Covid News")
133
- col1, col2= st.beta_columns([4,4])
134
  latest_news = news()
135
  for i in latest_news[0:6]:
136
  if i in [0, 2, 4]:
@@ -145,7 +145,7 @@ def main():
145
  link_path = "read this [article]" + "(" + link_ + ")"
146
  st.write(link_path)
147
  st.write(" ")
148
- else:
149
  with col2:
150
  st.write(i['title'])
151
  st.image(
 
130
  st.error("Sorry! Couldn't process the request")
131
 
132
  st.header("Latest Covid News")
133
+ col1, col2= st.columns([4,4])
134
  latest_news = news()
135
  for i in latest_news[0:6]:
136
  if i in [0, 2, 4]:
 
145
  link_path = "read this [article]" + "(" + link_ + ")"
146
  st.write(link_path)
147
  st.write(" ")
148
+ elif i in [1, 3, 5]:
149
  with col2:
150
  st.write(i['title'])
151
  st.image(