Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
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 |
-
|
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(
|